*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Strange behaviour with dev/null in jailed ssh chroot

Secure shell connections.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
piwwo
Starter
Starter
Posts: 27
Joined: 21 Mar 2013 15:30
Status: Offline

Strange behaviour with dev/null in jailed ssh chroot

#1

Post by piwwo » 30 Nov 2016 13:49

Hello
I have locked an user in a jail and he's supposed to use ssh in there. For that I copied the libraries for ssh and bash into the chroot and created the following nodes in dev

total 8
drwx--x--x 2 root staff 512 Nov 30 13:47 .
drwxr-xr-x 8 root staff 512 Nov 29 18:06 ..
crw-rw-rw- 1 root staff 0x103 Nov 30 13:47 null
crw-r--r-- 1 root staff 0x108 Nov 29 17:47 random
crw-r--r-- 1 root staff 0x500 Nov 29 17:47 tty
crw-r--r-- 1 root staff 0x105 Nov 29 17:47 zero

However when I try to run ssh in the chroot, I always get this error
ssh
Couldn't open /dev/null: Operation not supported

dev/null was created with
mknod dev/null c 1 3

What's wrong here?

piwwo
Starter
Starter
Posts: 27
Joined: 21 Mar 2013 15:30
Status: Offline

Re: Strange behaviour with dev/null in jailed ssh chroot

#2

Post by piwwo » 01 Dec 2016 09:16

Hello? Anyone?

Post Reply

Return to “SSH”