Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-08-2008, 07:22 AM   #1
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
''chroot /newroot login'': logs me into the old root

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.

kostas@mermix:~$ sudo /usr/sbin/chroot /i386/ login
mermix login: kostas
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
The 'ls' proves, that i haven't changed root.

Any help?
Old 08-09-2008, 09:02 AM   #2
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,125
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
What should the ls look like and do you automount your home directory?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chroot cannot change the root directory alkaff Linux From Scratch 3 05-11-2008 04:31 PM
problem with "screen" Cannot access '/newroot/dev/pts/0' - in a chroot - not /newroot stardotstar Linux - Software 0 05-01-2008 05:12 PM
chroot like program for non-root users xowl Linux - Security 12 12-10-2007 06:02 AM
Chroot ssh login problem guillermo Linux - Security 2 11-02-2007 08:12 AM
Somone please help, ive tryed everthing. Only logs in as root, Wont login as user. blackspade Linux - Security 2 08-05-2005 10:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration