LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-04-2007, 10:33 PM   #1
nutbag
LQ Newbie
 
Registered: Jul 2005
Location: ventura ca
Distribution: FreeBSD 6.1 and Debian etch
Posts: 23

Rep: Reputation: 15
setting up chroot in etch amd64


I realize this might be simple to some, but I don't understand part of the deb guide for ia32 chroot. The deb guide tells me to: "1.8) You will also need to set up the relevant users in the chroot. Copy your /etc/passwd, /etc/shadow and /etc/group files to the chroot." Does this mean I just issue the command "cp /etc/passwd /etc/shadow /etc/group chroot" Or do I need to know the specific files in chroot to copy to: ie /etc/passwd in chroot? I'm a little confused. Specific instruction would be greatly appeciated.
 
Old 04-05-2007, 05:33 PM   #2
shame
Member
 
Registered: Apr 2006
Location: England
Distribution: Debian Sidux - openSUSE
Posts: 261

Rep: Reputation: 30
Copy the files to the same location in the chroot, I'm not sure what guide you followed since I use a different method but if it was, for example, /debian32 you would cp /etc/passwd /debian32/etc/passwd etc.
Or if the chroot was something like /var/chroot/sid-ia32 it would be cp /etc/passwd /var/chroot/sid-ia32/etc/passwd.
 
Old 04-05-2007, 09:14 PM   #3
JackieBrown
Member
 
Registered: Dec 2004
Location: San Antonio, TX
Distribution: Debian-AMD64 Sid
Posts: 481

Rep: Reputation: 31
modify depending where you installed your chroot

cp /etc/passwd /var/chroot/sid-ia32/etc/passwd
cp /etc/shadow /var/chroot/sid-ia32/etc/shadow
cp /etc/group /var/chroot/sid-ia32/etc/group
 
Old 04-05-2007, 09:20 PM   #4
nutbag
LQ Newbie
 
Registered: Jul 2005
Location: ventura ca
Distribution: FreeBSD 6.1 and Debian etch
Posts: 23

Original Poster
Rep: Reputation: 15
I used the Debian GNU/Linux AMD64 how to. It didn't tell me to set up a /etc/directory, so whe I issue the command you suggested I get this "cp: cannot create regular file `/var/chroot/sid-1a32/etc/passwd': No such file or directory".So do I have to create an /etc directory? Or do you know an easier way to do this? the guide I followed is here
http://alioth.debian.org/docman/view...d64-howto.html
 
Old 04-05-2007, 09:43 PM   #5
shame
Member
 
Registered: Apr 2006
Location: England
Distribution: Debian Sidux - openSUSE
Posts: 261

Rep: Reputation: 30
The debootstrap command should have created the /etc directory in the chroot.
Note also that those cp commands need to be run as root user.
I had a browse through the guide you are following and I must say it somehow doesn't look complete to me, I remember having to link something being an important part but I'm afraid I can't remember the full steps I used (I actually had to do a bit of experimenting to get it working right).
In any case, you might want to replace any references to "sid" with "etch" which, in the case of debootstrap, may have caused it to not install correctly

Last edited by shame; 04-05-2007 at 09:46 PM.
 
Old 04-05-2007, 10:13 PM   #6
nutbag
LQ Newbie
 
Registered: Jul 2005
Location: ventura ca
Distribution: FreeBSD 6.1 and Debian etch
Posts: 23

Original Poster
Rep: Reputation: 15
I followed Jackie Brown's advice and chroot is now working. Thanks so much for your help, both of you. The tutorials I read leave out the trivial stuff like what files to copy exactly where. I hope this helps someone else too.
 
Old 04-07-2007, 09:32 AM   #7
Linux31
Member
 
Registered: Aug 2004
Posts: 296

Rep: Reputation: 30
I'm coming in late on this but am wondering if it would apply to my problem.

I recently did a netinstall of etch on an AMD64 dual core using the installgui option. Unfortunately, the installation now won't let me do a normal log on as root and I can seem to do the things that I have to do (e.g., modify the samba.conf) from the superuser terminal.

I understand that I could have set up a normal logon for root had I done an expert install but don't want to have to go back now. Is there anyway I can get root normal logon privleges with Gnome?

Thanks for any help you can provide.
 
  


Reply



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 in AMD64 with NIS patitoconejita Debian 0 08-09-2006 04:06 PM
AMD64 - 3d accel in a 32bit chroot don't work ssobeht Debian 2 12-22-2005 10:11 AM
amd64 chroot to ia32 kpachopoulos Debian 3 12-02-2005 03:53 PM
alsa,amd64,chroot and dmix wrongman Debian 0 03-17-2005 11:19 AM
a particular situation... (ALSA, AMD64,CHROOT, DMIX) wrongman Linux - Software 2 03-17-2005 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:10 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
Open Source Consulting | Domain Registration