Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The root user on any linux distro is the one user who has access through permissions to change or modify any file. Regular users can not write files on in the '/' directory, and therefore mess up the system. The system administrator logs in as root to change things as necessary. That person needs to be knowledgeable. If you are new, keep reading and learning. You will get there.
Most often you use the root user to install Linux software and make global changes to the system, like modifying key system configuration files.
'lfs user' refers to any user the root creates, not root. You should make one user for each person who wishes to use the system, even if you are the only user. After initial installation there will be a root user. You create a user for your self. If you have more people sharing the machine, create a user for each one of them, and an initial password. When you create a user, the system creates a /home directory structure. This is where each user will store their files.
The root user on any linux distro is the one user ............
Tks for your detail advice.
While building LFS on previous sections I always login LFS Root or "user root" as the book mentions. I haven't created a 'User' account yet on this LFS under building.
If I understand correctly that I only login as before on the FC3 host PC to proceed;
i.e.
[satimis@localhost ~]$ su - lfs
Password: (enter 'LFS Root' password)
I have not used LFS, as I understand what you have written, you are correct. my comments were intended to give you some understanding of the root user, and the power it has. Why you should (will) create a regular user later on. Continue to follw the instructions. They will give you a better understanding of Linux as you proceed.
As stated, "root" is the all-powerful user. You do not want to use this user until you have to.
The admonition to set up a separate user, called (say) lfs, distinct from your own regular login, is an extremely sound one. The reason why is that you can set up bash-profile settings for this account (different from the ones that you have or would prefer on your personal account) which are specifically tailored toward making sure that, when you launch your LFS system, there are no dependencies upon the host.
(Incidentally, very early on, I adopted the practice of setting up a sysmaint user-id which is used solely for system maintenance (of the host system). It is an account that I log on to when performing these tasks, and which has the capabilities and access that I would need only for these tasks; yet it is not 'root.' This is done so that any nasty-stuff that might try to run on my personal account ... can't do anything special. So I apply the same principles to host-system maintenance as I do/did when setting up LFS.)
Last edited by sundialsvcs; 07-07-2005 at 10:16 AM.
[B]As stated, "root" is the all-powerful user. You do not want to use this user until you have to.
The admonition to set up a [i]separate[/u] user, called (say) lfs, distinct from your own regular login, is an extremely sound one. The reason why is that you can set up bash-profile settings for this account (different from the ones that you have or would prefer on your personal account) which are specifically tailored toward making sure that, when you launch your LFS system, there are no dependencies upon the host.
Quote:
(Incidentally, very early on, I adopted the practice of setting up a sysmaint user-id which is used solely for system maintenance (of the host system)....
On Linux distro for maintainence, we login
$ su -
Some folks term it as "Super Root". It is for system maintainence.
$ su
for login as "Root" to do job as Root other than system maintainence.
I have not set up either "su" nor "'User" yet because the building of LFS has not been completed yet.
I haven't used su - nor was I previously aware of this parameter.
The reasoning for the sysmaint account (and this is not the real name, by the way) is that this is the account which has the file-access privileges, is the member of the wheel group and so-on, which has the ability to reach files beyond those normally accessible to an average-Joe. Although it is tempting to simply make your regular user-account have this level of access, it is unwise to do so.
This maintenance-user alone can log in, issue the appropriate newgrp command, and perform system-maintenance (to files other than those which require root, which are strictly limited to "the system itself." It has kept me from blowing my foot off several times.
(p.s. why "wheel?" I have no idea... that does seem to be the default group-name that "big wheels" on a Unix/Linux system use.)
Last edited by sundialsvcs; 07-07-2005 at 10:23 AM.
Putting a '-' after su, as the manpage (try typing 'man su') says, simply provides the same environment as if the user had logged in directly, i guess by running their individual login script and chosen shell and changing to their home directory, but for most cases the difference doesn't seem to be too important. Indeed, when using su for maintenance, I would think that a simple 'su' or 'su root' would be more convenient (and familiar).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.