What kind of filesystem does your
/dev run on?
Could you please post the result of:
mount
tnx
Peter veerman
Nikola Knezevic wrote:
Olivier
Sessink wrote:
Nikola Knezevic wrote:
Sure thing:
address@hidden:/home/chrootusers/jeannie# ls -l dev/null
crw-r--r-- 1 666 root 1, 3 2006-11-14 11:02 dev/null
My box certainly has different permissions on /dev/null:
$ ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Jan 1 2002 /dev/null
are you sure the permissions are identical?
Sorry, wrong thing went out...
Inside jail:
address@hidden:~$ ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Nov 14 10:02 /dev/null
outside jail:
address@hidden:/home/chrootusers/jeannie$ ls -l dev/null
crw-rw-rw- 1 root root 1, 3 2006-11-14 11:02 dev/null
address@hidden:/home/chrootusers/jeannie$ ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 2006-10-26 15:26 /dev/null
Strace shows that ssh fails in open(/dev/null, ...) which returns -1,
although the file exists.
This happens regardless of the shell in jail (jk_lsh or bash).
Cheers,
Nikola
_______________________________________________
Jailkit-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/jailkit-users
|