LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-04-2012, 03:29 AM   #1
atul.verma.maa@gmail.com
LQ Newbie
 
Registered: Dec 2012
Posts: 19
Blog Entries: 3

Rep: Reputation: Disabled
How to switch to root in LFS 6.3?


HI GUYS,
i am making a distribution using LFS 6.3. i just got stuck in changing to root from lfs .how to log in as user root and no longer as user lfs.
 
Old 12-04-2012, 04:16 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by atul.verma.maa@gmail.com View Post
HI GUYS,
i am making a distribution using LFS 6.3. i just got stuck in changing to root from lfs .how to log in as user root and no longer as user lfs.
If you do not know how to change from one user to the other or log in as a specific user, than your experience level is too low to build an LFS system. You'll run into many situations that are not explained in the book but taken for granted. A certain amount of existing knowledge is expected: LFS Prerequisites

My advise: get familiar with the linux command line and the way tools are being used before you start this project. You might want to start with the links provoded on the LFS Prerequisites page.

BTW: Why did you choose for an older ("outdated") LFS version and not the latest stable?

EDIT: I've asked the moderators to move this thread to the LFS sub-forum here on LQ.
 
Old 12-04-2012, 04:25 AM   #3
atul.verma.maa@gmail.com
LQ Newbie
 
Registered: Dec 2012
Posts: 19

Original Poster
Blog Entries: 3

Rep: Reputation: Disabled
yeah i am very new to LFS , i was building LFS 7.1 but the livecd doesn't support 7.1, and by the way i know how to change to the root user the thing is that i am getting some problem on it, the permission is getting denied.
 
Old 12-04-2012, 04:28 AM   #4
atul.verma.maa@gmail.com
LQ Newbie
 
Registered: Dec 2012
Posts: 19

Original Poster
Blog Entries: 3

Rep: Reputation: Disabled
Please help me out on making the LFS , i have failed 5 times till now, i don't want this system to be ruined again, please tell me what to do now, it's a mini project for my collage ....
 
Old 12-04-2012, 04:43 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You are contradicting yourself:
Quote:
Originally Posted by atul.verma.maa@gmail.com View Post
how to log in as user root and no longer as user lfs.
Quote:
Originally Posted by atul.verma.maa@gmail.com View Post
and by the way i know how to change to the root user

You need to give us detailed information about your problem. The following doesn't tell us anything:
Quote:
the thing is that i am getting some problem on it, the permission is getting denied.
- Which LFS chapter,
- Which command,
- What is the exact (error) message,
- Did you encounter any errors leading up to this problem.

About the liveCD: You are correct in stating that it cannot be used to build LFS 7.0 or greater. But the liveCD comes with its own set of problems (mainly when restarting after a reboot).

I would strongly advise not to use the liveCD but to use the current stable version. Make sure your host confirms to the specs in the book (Host System Requirements).
 
Old 12-04-2012, 06:46 AM   #6
atul.verma.maa@gmail.com
LQ Newbie
 
Registered: Dec 2012
Posts: 19

Original Poster
Blog Entries: 3

Rep: Reputation: Disabled
If you want to build LFS 7.1 in an existing linux distribution , which distribution you would have choose, and actually i am doing this in livecd in VMWare....
 
Old 12-04-2012, 06:53 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by atul.verma.maa@gmail.com View Post
If you want to build LFS 7.1 in an existing linux distribution , which distribution you would have choose
Ubuntu 12.04 and Debian 6 are good choices (Slackware as well, but I don't have any current experience with it).

Have a look here for some pointers:
- LFS 7.1 on Ubuntu 12.04
- Minimal Graphical Debian Host for LFS
 
Old 12-04-2012, 07:05 AM   #8
atul.verma.maa@gmail.com
LQ Newbie
 
Registered: Dec 2012
Posts: 19

Original Poster
Blog Entries: 3

Rep: Reputation: Disabled
Thanks for the - LFS 7.1 on Ubuntu 12.04, surely i'll be doing this, last time i was doing this on live cd i just got stuck on GCC pass 2 stating that kernal too old, i think this will help me ,, by the way i am still struggling on LFS 6.3.
it say's---

lfs is not the sudoer file. this incident will be reported..




i wish i could show you the screen shorts ..
 
Old 12-04-2012, 07:13 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Moved: This thread is more suitable in the Linux From Scratch forum and has been moved accordingly to help your thread/question get the exposure it deserves. Moreover the thread title has been changed to something that better introduce your question. Using a proper title makes it easier for members to help you.
 
Old 12-04-2012, 07:18 AM   #10
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Can you explain what you mean. What live cd are you using
 
Old 12-04-2012, 07:18 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by atul.verma.maa@gmail.com View Post
Thanks for the - LFS 7.1 on Ubuntu 12.04, surely i'll be doing this
Good choice!

Quote:
by the way i am still struggling on LFS 6.3.
it say's---

lfs is not the sudoer file. this incident will be reported..
Sudo?

The LFS book doesn't mention using sudo anywhere, you need to become the user the "normal" way (using su - <user> (as shown here: 4.3. Adding the LFS User (last command on page)).
 
Old 12-04-2012, 07:27 AM   #12
atul.verma.maa@gmail.com
LQ Newbie
 
Registered: Dec 2012
Posts: 19

Original Poster
Blog Entries: 3

Rep: Reputation: Disabled
can you please explain this "The commands in the remainder of this book must be performed while logged in as user root and no longer as user lfs. Also, double check that $LFS is set in root's environment"

It is chapter http://www.linuxfromscratch.org/lfs/...gingowner.html
 
Old 12-04-2012, 07:39 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by atul.verma.maa@gmail.com View Post
can you please explain this "The commands in the remainder of this book must be performed while logged in as user root and no longer as user lfs. Also, double check that $LFS is set in root's environment"

It is chapter http://www.linuxfromscratch.org/lfs/...gingowner.html
What part don't you understand?

All of chapter 5 (up to and including 5.33) is done by user lfs, 5.34 is done as root user. $LFS should contain /mnt/lfs (or whatever you used).
 
Old 12-04-2012, 07:47 AM   #14
atul.verma.maa@gmail.com
LQ Newbie
 
Registered: Dec 2012
Posts: 19

Original Poster
Blog Entries: 3

Rep: Reputation: Disabled
so how to move to root user .
 
Old 12-04-2012, 07:53 AM   #15
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by atul.verma.maa@gmail.com View Post
so how to move to become root user .
Code:
su -
Also see post #2 and #11

Last edited by druuna; 12-04-2012 at 07:54 AM.
 
  


Reply

Tags
lfs, stable


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
cant go on chown -R root:root $LFS/tools Lolandrea Linux From Scratch 6 11-04-2008 07:36 AM
lfs-livecd - How to switch off the shell screensaver / blank-screen? nitric Linux From Scratch 1 07-01-2008 01:16 PM
LFS 6.2: made mistake when going from lfs to root setup oldgeek Linux From Scratch 4 11-12-2006 09:00 PM
How do I retain the PATH in the root account even when I switch to root using su? thearchitect Linux - Newbie 1 08-13-2005 12:02 AM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 12:07 PM

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

All times are GMT -5. The time now is 10:36 PM.

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