|
From: | OCEANET - Cédric BASSAGET |
Subject: | Re: [Jailkit-users] ssh from jailed user |
Date: | Mon, 17 Feb 2014 10:15:33 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
I've tried to create a new user / jail
:
#useradd githplus2 #jk_init -j /srv/gan-w17-disk1/githplus2 basicshell editors extendedshell netutils ssh sftp scp jk_lsh #jk_jailuser -m -j /srv/gan-w17-disk1/githplus2 githplus2 #passwd githplus2 <set password> Then I edit /srv/gan-w17-disk1/githplus2/etc/passwd and changed githplus2's shell to /bin/bash. address@hidden gan-w17-disk1]# ll /srv/gan-w17-disk1/githplus2/dev/null crw-rw-rw- 1 root root 1, 3 Sep 15 04:30 /srv/gan-w17-disk1/githplus2/dev/null address@hidden gan-w17-disk1]# chmod 777 /srv/gan-w17-disk1/githplus2/dev/null address@hidden gan-w17-disk1]# ssh address@hidden Password: address@hidden ~]$ ls -la /dev/null crwxrwxrwx 1 root root 1, 3 Sep 15 04:30 /dev/null address@hidden ~]$ ssh 127.0.0.1 Couldn't open /dev/null: Permission denied Still have the same problem. Regards, Cédric Le 17/02/2014 09:43, OCEANET - Cédric BASSAGET a écrit :
|
[Prev in Thread] | Current Thread | [Next in Thread] |