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.
> > 
> > [EMAIL PROTECTED]:~$ 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 <[EMAIL PROTECTED]>
ICQ: blashyrkh #2361802
Jabber: [EMAIL PROTECTED]

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

Reply via email to