Hi,
I've created jail with jk_jailuser and jk_init.
I've tried many things :
address@hidden ~]# jk_init -j /srv/gan-w17-disk1/githplus terminfo ssh sftp scp
Device /srv/gan-w17-disk1/githplus/dev/urandom does exist already
Device /srv/gan-w17-disk1/githplus/dev/tty does exist already
Device /srv/gan-w17-disk1/githplus/dev/null does exist already
Copying /usr/libexec/openssh/sftp-server to /srv/gan-w17-disk1/githplus/usr/libexec/openssh/sftp-server
Copying /usr/bin/scp to /srv/gan-w17-disk1/githplus/usr/bin/scp
address@hidden ~]# ll /srv/gan-w17-disk1/githplus/dev/null
crwxrwxrwx 1 root root 1, 3 Feb 13 13:10 /srv/gan-w17-disk1/githplus/dev/null
address@hidden ~]# ssh
address@hidden Password:
Last login: Mon Feb 17 09:32:29 2014 from XXX
address@hidden ~]$ whoami
githplus
address@hidden ~]$ pwd
/home/githplus
address@hidden ~]$ ls -la /dev/null
crwxrwxrwx 1 root root 1, 3 Feb 13 13:10 /dev/null
address@hidden ~]$ ssh -v 127.0.0.1
Couldn't open /dev/null: Permission denied
.................
Any Idea ?
Regards,
Cédric
Le 14/02/2014 09:24, Richard Scott a écrit :
How did you create your Jail?
You should have a /dev/null inside your jail.
I create mine like this:
jk_init -j /myjail terminfo ssh sftp scp
and the "ssh sftp scp" option creates the required devices.
Rich
On 14/02/2014 08:06, OCEANET - Cédric BASSAGET wrote:
Hello Olivier,
I still have the same problem, with :
address@hidden ~]$ ls -la /dev/null
crwxrwxrwx 1 root root 1, 3 Feb 13 13:10 /dev/null
address@hidden ~]$ ssh -v 10.10.10.10
Couldn't open /dev/null: Permission denied
Le 13/02/2014 21:49, Olivier Sessink a écrit :
On 02/13/2014 01:23 PM, OCEANET - Cédric BASSAGET wrote:
But I still have this error :
address@hidden ~]$ ssh -v 10.10.10.10
Couldn't open /dev/null: Permission denied
try
chmod a+rw /path/to/jail/dev/null
Olivier
--
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
_______________________________________________
Jailkit-users mailing list
address@hiddenhttps://lists.nongnu.org/mailman/listinfo/jailkit-users
_______________________________________________
Jailkit-users mailing list
address@hiddenhttps://lists.nongnu.org/mailman/listinfo/jailkit-users
_______________________________________________
Jailkit-users mailing list
address@hiddenhttps://lists.nongnu.org/mailman/listinfo/jailkit-users