LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ''chroot /newroot login'': logs me into the old root (https://www.linuxquestions.org/questions/linux-newbie-8/chroot-newroot-login-logs-me-into-the-old-root-661387/)

kpachopoulos 08-08-2008 07:22 AM

''chroot /newroot login'': logs me into the old root
 
Hi,
i run Debian Etch amd64. I set up an i386 chrooted environment. I now try to execute the 'chroot /newroot login' command in order not to log into the jailed environment directly as root. However, login executes in the old environment and logs me in there; not in the jailed one.

Code:

kostas@mermix:~$ sudo /usr/sbin/chroot /i386/ login
mermix login: kostas
Password:
Last login: Fri Aug  8 15:17:54 2008 on pts/2


The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
kostas@mermix:~$ ls
bin            install_flash_player_9_linux
Desktop        install_flash_player_9_linux.tar.gz
desktop_style  progs
kostas@mermix:~$

The 'ls' proves, that i haven't changed root.

Any help?

estabroo 08-09-2008 09:02 AM

What should the ls look like and do you automount your home directory?


All times are GMT -5. The time now is 01:12 PM.