|
From: | Olivier Sessink |
Subject: | Re: [Jailkit-users] is it possible to "sudo su - user" to a jailkit user? |
Date: | Fri, 31 May 2013 08:28:23 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 |
On 05/31/2013 06:01 AM, Marcus wrote: > Rich - thanks so much for testing that out. Not sure why your jail is called > scott but that is fine I guess. Here is what I'm trying - it is mostly > similar to yours - execpt on Ubuntu my bash appears to be in /bin/bash > instead of /usr/bin/bash > > > address@hidden:~$useradd -m -K UMASK=0066 -s /bin/bash myuser > address@hidden:~$jk_jailuser -m -j /home/jail myuser > address@hidden:~$su - myuser > address@hidden:~$ (no luck) > address@hidden:~$vi /home/jail/etc/passwd (changed shell to bash ) > address@hidden:~$su - myuser > address@hidden:~$ (no luck) > address@hidden:~$cat /etc/passwd | grep myuser > myuser:x:1005:1007::/home/jail/./home/myuser:/usr/sbin/jk_chrootsh > address@hidden:~$groups myuser > myuser : myuser > address@hidden:~$cat /home/jail/etc/passwd | grep myuser > myuser:x:1005:1007::/home/myuser:/bin/bash > address@hidden:~$su - myuser > address@hidden:~$ (no luck) what is in the logs now? jk_chrootsh sends log messages if it aborts. Olivier -- Bluefish website http://bluefish.openoffice.nl/ Blog http://oli4444.wordpress.com/
[Prev in Thread] | Current Thread | [Next in Thread] |