LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-22-2003, 10:06 AM   #1
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Rep: Reputation: 15
what user should be doing various chap 6 work?


I've made it through chapter 5 and everything seemed to go smooth. Any errors I got could be traced to mistakes I made, so I'm pretty confident that chapter 5 is solidly complete.

I started Chapter 6, have done the chroot and other prep work (directory tree, mount proc, mtab, bash and sh symlinks, /etc/passwd and /etc/group) and now come to the first "installation" I must do.

Prologue
However, the unpacked lfs-packages-4.0.tar tarball is back in /home/lfs on the "Base" system, so I need to copy it over to the new, post-chroot, system.

I opened another xterm, signed on doing su - lfs, and then tried cp lfs-packages-4.0.tar /mnt/lfs, but I get a Permission denied error.

So, I went back to my base system and signed on as root doing su -, and then was able to copy the tarball over. I just copied it to /mnt/lfs.
End Prologue

Now in the original xterm, I'm "root" (but prompt='I have no name!') in the post-chroot system and I'm wondering in what directory should that tarball reside and be unpacked?

Also, as what user? On the post-chroot system, the book doesn't really mention using an "lfs" user like we did in Chapter 5. If "root" unpacks the tarball, and hence becomes owner of the resulting linux-packages-4.0 directory, won't only "root" be able to unpack the .tar.bz2 packages inside? And then, if so, won't only "root" be able to ./configure, make, make install?

I've read ahead in Chapter 6 and I don't see anything about ever creating another user. So I guess my questions boil down to
1) is everything in Chapter 6 performed as "root"?
2) if not, what isn't?
3) where and how do you create the new user to perform those things that are the answer to my question #2?

Thanks!

Last edited by cpv204; 06-22-2003 at 10:09 AM.
 
Old 06-22-2003, 02:27 PM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
1) everything in chapter 6 is performed by root. 2&3) N/A

the whole idea of the chroot environment is so that you can be root without risking damaging the host system
 
Old 06-22-2003, 05:43 PM   #3
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Original Poster
Rep: Reputation: 15
OK, Kev, thanks for that explanation.
 
  


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
Included CD? (v6.0 chap 1.5) hell_carnage Linux From Scratch 2 01-19-2005 11:41 AM
CHAP authentication failed iduru Linux - Newbie 4 12-29-2003 10:37 PM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM
pppoeserver with pap/chap know Linux - Networking 0 06-07-2003 09:14 AM
CHAP Authentication failure reader Linux - Networking 2 04-30-2001 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:29 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