Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I did something really, really stupid. I deleted groups and passwords in my /etc/passwd and /etc/group files without saving them first. I thought I only needed root and that the installation cd had just cluttered my files with useless crap as it usually does. On startup I get a bunch of messages from programs (which I guess are assigned a group and password) saying something to the effect of no group by that name exists. However, everything seems to be working fine anyways. Why were these groups made?
You don't have to remind me that I shouldn't be using root to do work. I know. I'm exploring all my configuration files because I want to go through the Linux from Scratch tutorial. I'm very interested in the innards of Linux (hint if you have any good resources on linux innards, please let me know).
My real question is whether or not there is a way to recreate the groups and passwords correctly again if necessary, or how do I get rid of the error message by making them not ask for groups?
Thanks. Everyone here has been a big help.
You can edit your applications conf files to change the group to a single fake user/group and create that single fake user/group with groupadd/useradd. You can also check the conf's to see what groups it decided to use, and create them as well. However, it will be tricky because you won't know for sure if the shell needs an actual shell or if you can use /dev/null as well as the entry for the home... It's worth a shot though.
LFS is a great way to figure out the 'innards' of Linux, be sure to do it all by hand, don't use anyone's 'scripts' for automating the tasks so you can be sure to figure it all out.
Crap, editing those conf files is going to be a lot of work. I don't even know which conf file belongs to which service. I know there is an alsa.conf and modules.conf but figuring out where locate.conf and adduser.conf etc. is, is too much work! Thanks, but I think I'll reinstall. I have backups of all my rc init files and of my current kernel configuration. However, it will probably be a couple of days so if anyone knows of an easy way to figure out what file belongs to what program, I would be very glad. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.