jailkit-users
[Top][All Lists]
Advanced

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

Re: [Jailkit-users] ssh in jail and /dev/null problems


From: Nikola Knezevic
Subject: Re: [Jailkit-users] ssh in jail and /dev/null problems
Date: Tue, 14 Nov 2006 18:55:44 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060918)

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




reply via email to

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