LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-08-2004, 04:04 AM   #1
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Rep: Reputation: 30
I deleted some groups and passwords


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.
 
Old 12-08-2004, 04:08 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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.

Cool
 
Old 12-08-2004, 04:27 AM   #3
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Original Poster
Rep: Reputation: 30
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.
 
Old 12-08-2004, 04:31 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You could always post the problematic ones.

locate.conf is slocate, adduser.conf, never heard of it, can't really imagine what service it belongs too either..

Cool
 
  


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
Map Windows NT Groups to UNIX Groups - why? kenji1903 Linux - Networking 4 10-16-2007 11:52 AM
Sync MySQL passwords with local account passwords? turbine216 Linux - Software 2 02-18-2005 03:15 AM
Completely uninstalling MySQL and its passwords passwords...how? I locked myself out! Baix Linux - Newbie 2 01-30-2005 04:10 PM
winbind: wbinfo -g only lists global groups from PDC and not local groups saradiya Linux - Networking 0 12-01-2003 02:58 AM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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