Re: user dchroot does not work

2005-08-03 Thread Alexander Fieroch
I fixed the problem. $SHELL was set to bash and not to /bin/bash. Regards, Alexander -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]

Re: user dchroot does not work

2005-05-26 Thread Thomas Steffen
On 5/25/05, Alexander Fieroch [EMAIL PROTECTED] wrote: Then I get the following error: $ dchroot -c ia32 glxgears (ia32) glxgears Must be connected to a terminal. dchroot: Child exited non-zero. dchroot: Operation failed. Any hints? Just a guess, but it may be that dchroot does not

Re: user dchroot does not work

2005-05-26 Thread Alexander Fieroch
Thomas Steffen wrote: Just a guess, but it may be that dchroot does not create a terminal by default. So try dchroot -c ia32 sh first, and then start glxgears from the shell. You can also check the variable $DISPLAY that way. $ dchroot -c ia32 sh (ia32) sh Must be connected to a terminal.

Re: user dchroot does not work

2005-05-26 Thread Alexander Fieroch
Thomas Steffen wrote: Just a guess, but it may be that dchroot does not create a terminal by default. So try dchroot -c ia32 sh first, and then start glxgears from the shell. You can also check the variable $DISPLAY that way. $ dchroot -c ia32 sh (ia32) sh Must be connected to a terminal.

Re: user dchroot does not work

2005-05-25 Thread Alexander Fieroch
Bob Proulx wrote: Have all of your 'dchroot' calls used -d? Does it work without -d? Then I get the following error: $ dchroot -c ia32 glxgears (ia32) glxgears Must be connected to a terminal. dchroot: Child exited non-zero. dchroot: Operation failed. Any hints? -- To UNSUBSCRIBE, email

Re: user dchroot does not work

2005-05-25 Thread Bob Proulx
Alexander Fieroch wrote: Bob Proulx wrote: Have all of your 'dchroot' calls used -d? Does it work without -d? Then I get the following error: $ dchroot -c ia32 glxgears (ia32) glxgears Must be connected to a terminal. dchroot: Child exited non-zero. dchroot: Operation failed. Any

Re: user dchroot does not work

2005-05-13 Thread Bob Proulx
Alexander Fieroch wrote: I also can chroot to my chroot-path as root and switch to the user. Then I can start every programm. The thing that's not working is dchroot as user. As root it's working too. Have all of your 'dchroot' calls used -d? Does it work without -d? The above makes me think

Re: user dchroot does not work

2005-05-12 Thread Alexander Fieroch
Javier Kohen wrote: I'm not sure this could cause that message, but does the user's home directory exist in the chroot? Yes the user's home directory does exist. It's a complete debian ia32 installation on a separate partition. The user's home directory of debian 64 does not really exist.

Re: user dchroot does not work

2005-05-12 Thread Sven Mueller
Alexander Fieroch wrote on 12/05/2005 14:50: Javier Kohen wrote: I'm not sure this could cause that message, but does the user's home directory exist in the chroot? Yes the user's home directory does exist. It's a complete debian ia32 installation on a separate partition. The user's home

Re: user dchroot does not work

2005-05-12 Thread Alexander Fieroch
Sven Mueller wrote: Please show us grep [username] /etc/passwd /etc/group $ grep alex /etc/passwd /etc/group /etc/passwd:alex:x:1000:1000:Alexander Fieroch,,,:/home/alex:/bin/bash /etc/group:dialout:x:20:alex /etc/group:cdrom:x:24:alex,hal /etc/group:floppy:x:25:alex,hal

Re: user dchroot does not work

2005-05-11 Thread Alexander Fieroch
Bob Proulx wrote: sudo dchroot -c ia32 At that point you should be root in your chroot. Use su to load the user environment. Where 'youruser' is your normal user account. su - youruser What does that say? I am guessing it will say no shell. Look to see why. These commands

Re: user dchroot does not work

2005-05-11 Thread Javier Kohen
El mi, 11-05-2005 a las 20:11 +0200, Alexander Fieroch escribi: $ dchroot -c ia32 -d glxgears (ia32) glxgears dchroot: chroot: Operation not permitted dchroot: Child exited non-zero. dchroot: Operation failed. What have I done wrong? Is the dchroot binary suid? It should be if you intend

Re: user dchroot does not work

2005-05-11 Thread Alexander Fieroch
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: $

Re: user dchroot does not work

2005-05-11 Thread Javier Kohen
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

Re: user dchroot does not work

2005-05-11 Thread Alexander Fieroch
Javier Kohen wrote: 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 Yes, it's /bin/bash and it is readable and executable: -rwxr-xr-x 1

Re: user dchroot does not work

2005-05-11 Thread Javier Kohen
El mi, 11-05-2005 a las 22:31 +0200, Alexander Fieroch escribi: Javier Kohen wrote: Yes, it's /bin/bash and it is readable and executable: -rwxr-xr-x 1 root root 611K Dec 19 17:53 /bin/bash I also can chroot to my chroot-path as root and switch to the user. Then I can start every

user dchroot does not work

2005-05-10 Thread Alexander Fieroch
Hello, I have followed the instructions for chrooting on https://alioth.debian.org/docman/view.php/30192/21/debian-amd64-howto.html#id274293 but I can't dchroot as user. I can start openoffice in a chroot environment and with 'dchroot -c ia32 -d openoffice' as root but as user I only get the

Re: user dchroot does not work

2005-05-10 Thread Bob Proulx
Alexander Fieroch wrote: $ dchroot -c ia32 -d openoffice (ia32) openoffice No shell dchroot: Child exited non-zero. dchroot: Operation failed. In google I've found the same problem with this answer: Literally that looks like you have no shell. Check your password field entry in your