jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] ssh from jailed user


From: OCEANET - Cédric BASSAGET
Subject: Re: [Jailkit-users] ssh from jailed user
Date: Wed, 19 Feb 2014 17:31:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

Hi Olivier,

I've tried, but still have the same problem (even with a new user and jail) :

address@hidden /]# rm -rf /srv/gan-w17-disk1/githplus/dev/null
address@hidden /]# jk_cp /srv/gan-w17-disk1/githplus /dev/null
address@hidden /]# su - githplus

address@hidden ~]$ ssh
Couldn't open /dev/null: Permission denied

address@hidden ~]$ exit
address@hidden /]# mount
/dev/xvda1 on / type ext3 (rw,noatime,errors=remount-ro)
none on /proc type proc (rw,noexec,nosuid)
devpts on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/xvdd on /srv/gan-w17-backup type ext3 (rw,nosuid,nodev,noatime)
/dev/xvdc on /srv/gan-w17-disk1 type ext3 (rw,nosuid,noatime)

Regards,
Cédric
Le 19/02/2014 17:25, Olivier Sessink a écrit :
On 02/19/2014 01:18 PM, OCEANET - Cédric BASSAGET wrote:
address@hidden ~]# mount
/dev/xvda1 on / type ext3 (rw,noatime,errors=remount-ro)
none on /proc type proc (rw,noexec,nosuid)
devpts on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/xvdd on /srv/gan-w17-backup type ext3 (rw,nosuid,nodev,noatime)
/dev/xvdc on /srv/gan-w17-disk1 type ext3 (rw,nosuid,nodev,noatime)

maybe the "nodev" option on the last line is the problem ?

yes nodev is a problem.

you probably need to remount, delete the jail/dev/null and re-create it.

Olivier

-- 
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/


_______________________________________________
Jailkit-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/jailkit-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]