|Subject:||Re: [Jailkit-users] is it possible to "sudo su - user" to a jailkit user?|
|Date:||Mon, 03 Jun 2013 14:51:15 +0100|
I'm using Fedora, but I created my own RPM as Fedora 18 doesn't seem to have one.
Did you install jailkit on Ubuntu from apt-get or source?
Are you using Server or Desktop installation?
I can try and re-create my Fedora setup in Ubuntu if you let me know what your using I'll try and duplicate as much of your setup as I can.
On 03/06/2013 14:41, Marcus wrote:
Thanks, Richard - I really appreciate your help. Here is what I see when doing "su jane"Jun 3 13:34:56 ip-10-29-233-97 su: Successful su for jane by rootJun 3 13:34:56 ip-10-29-233-97 su: + /dev/pts/2 root:janeJun 3 13:34:56 ip-10-29-233-97 su: pam_unix(su:session): session opened for user jane by root(uid=0)Jun 3 13:34:56 ip-10-29-233-97 jk_chrootsh: now entering jail /home/jail for user jane (1002) with argumentsand if I do "su - jane"Jun 3 13:36:42 ip-10-29-233-97 su: Successful su for jane by rootJun 3 13:36:42 ip-10-29-233-97 su: + /dev/pts/2 root:janeJun 3 13:36:42 ip-10-29-233-97 su: pam_unix(su:session): session opened for user jane by root(uid=0)Jun 3 13:36:42 ip-10-29-233-97 jk_chrootsh: abort, jk_chrootsh is called as -suJun 3 13:36:42 ip-10-29-233-97 su: pam_unix(su:session): session closed for user janeThat error is coming from the section of code I highlighted below. I'm using 2.16 - is that the same version you are on? I'm using Ubuntu 12.04 64-bit with all the latest updates.It also looks like when I log in as "jane" via SSH that only /etc/bash.bashrc is running and never /etc/profile - so I'm getting ready to look through the code and see if jk_chrootsh should be passing something to bash to tell it whether it is a login shell or not.On Jun 3, 2013, at 5:32 AM, Richard Scott <address@hidden> wrote:
What is in your /var/log/messages?
I have this on a successful run of "su - richard":
Jun 3 10:31:19 fps1 jk_chrootsh: now entering jail /home/scott for user richard (1500) with arguments
Does yours show any errors?
_______________________________________________ Jailkit-users mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/jailkit-users
|[Prev in Thread]||Current Thread||[Next in Thread]|