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

Re: user dchroot does not work



El mié, 11-05-2005 a las 21:16 +0200, Alexander Fieroch escribió:
> Javier Kohen wrote:
> > Is the dchroot binary suid? It should be if you intend to run it as a
> > regular user.
> > 
> > jkohen@nada:~$ ls -l /usr/bin/dchroot
> > -rwsr-xr-x  1 root root 11432 2005-04-10 19:38 /usr/bin/dchroot
> 
> Ok, I set the suid bit to dchroot, but now I'm back to the last message:
> 
> $ dchroot -c ia32 -d glxgears
> (ia32) glxgears
> No shell
> dchroot: Child exited non-zero.
> dchroot: Operation failed.
> 
> The user still exists and bash is executable.
> What's wrong?

Is bash the user's shell?

The following should give you the shell that's currently set for that
user. Make sure it exists inside the chroot.
grep YOUR_USER_NAME PATH_TO_CHROOT/etc/passwd | cut -d : -f 7

Greetings,
-- 
Javier Kohen <jkohen@users.sourceforge.net>
ICQ: blashyrkh #2361802
Jabber: jkohen@jabber.org

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: