LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   How to switch to root in LFS 6.3? (http://www.linuxquestions.org/questions/linux-from-scratch-13/how-to-switch-to-root-in-lfs-6-3-a-4175439932/)

atul.verma.maa@gmail.com 12-04-2012 03:29 AM

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.

druuna 12-04-2012 04:16 AM

Quote:

Originally Posted by atul.verma.maa@gmail.com (Post 4842305)
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.

atul.verma.maa@gmail.com 12-04-2012 04:25 AM

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.

atul.verma.maa@gmail.com 12-04-2012 04:28 AM

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 ....

druuna 12-04-2012 04:43 AM

You are contradicting yourself:
Quote:

Originally Posted by atul.verma.maa@gmail.com (Post 4842305)
how to log in as user root and no longer as user lfs.

Quote:

Originally Posted by atul.verma.maa@gmail.com (Post 4842342)
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).

atul.verma.maa@gmail.com 12-04-2012 06:46 AM

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....

druuna 12-04-2012 06:53 AM

Quote:

Originally Posted by atul.verma.maa@gmail.com (Post 4842439)
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

atul.verma.maa@gmail.com 12-04-2012 07:05 AM

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 ..

colucix 12-04-2012 07:13 AM

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.

spiky0011 12-04-2012 07:18 AM

Hi

Can you explain what you mean. What live cd are you using

druuna 12-04-2012 07:18 AM

Quote:

Originally Posted by atul.verma.maa@gmail.com (Post 4842452)
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)).

atul.verma.maa@gmail.com 12-04-2012 07:27 AM

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

druuna 12-04-2012 07:39 AM

Quote:

Originally Posted by atul.verma.maa@gmail.com (Post 4842483)
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).

atul.verma.maa@gmail.com 12-04-2012 07:47 AM

so how to move to root user .

druuna 12-04-2012 07:53 AM

Quote:

Originally Posted by atul.verma.maa@gmail.com (Post 4842502)
so how to move to become root user .

Code:

su -
Also see post #2 and #11


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