LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 30
''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?
 
Old 08-09-2008, 10:02 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,117
Blog Entries: 2

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


Reply


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 05:31 PM
problem with "screen" Cannot access '/newroot/dev/pts/0' - in a chroot - not /newroot stardotstar Linux - Software 0 05-01-2008 06:12 PM
chroot like program for non-root users xowl Linux - Security 12 12-10-2007 07:02 AM
Chroot ssh login problem guillermo Linux - Security 2 11-02-2007 09:12 AM
Somone please help, ive tryed everthing. Only logs in as root, Wont login as user. blackspade Linux - Security 2 08-05-2005 11:39 AM


All times are GMT -5. The time now is 11:27 AM.

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