[Top][All Lists]

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

Re: [Jailkit-users] is it possible to "sudo su - user" to a jailkit user

From: Olivier Sessink
Subject: Re: [Jailkit-users] is it possible to "sudo su - user" to a jailkit user?
Date: Thu, 30 May 2013 23:14:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4

that is probably because the jk_chrootsh code is very strict and abort
on anything that could be the start of hacking. su does a funny thing
when calling the shell. su <> -c <> is explicitly enabled in the code
(earlier versions aborted on su -c too).


On 05/30/2013 02:56 AM, Marcus Eting wrote:
> Thanks Olivier and Rich. I changed the shell for the user to bash in 
> /home/jail/etc/etc so I can SSH into the box as the user and the jail seems 
> to be working fine - I have a pretty good understanding of what's going on 
> with things so I think it is set up right. 
> However, I can't "su testuser" but  I was able to run "su testuser -c bash" 
> to get the behavior I want  - that bit of progress was pretty exciting. Do 
> you know why it won't work without the "-c bash" ?
> _______________________________________________
> Jailkit-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/jailkit-users

Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/

reply via email to

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