Results 1 to 5 of 5
I did an etc-update after portage told me that there were some files that needed updating. I saw that it update /etc/passwd, groups, shadow now when i do whoami i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-18-2004 #1Linux Newbie
- Join Date
- Sep 2003
- Location
- St.Charles, Missouri, USA
- Posts
- 201
etc-update wreaks havic [solved]
I did an etc-update after portage told me that there were some files that needed updating. I saw that it update /etc/passwd, groups, shadow now when i do whoami i get:
and my terms. look like this:Code:whoami: cannot find username for UID 100
and 'top' only shows UID's not usernames. mplayer doesnt work anymore and says:Code:I have no name!@gwalters ~ $
How can I fix all this?Code:could not get user name from user id
FIX: It turns out that etc-update changed my etc/passwd and group files. I restored the originals but still had the problem. Turns out that the files were chmod -r-------- root root. I changed them to -r--r--r-- root root. allowing everyone to read them. Now all UID's can be resolved to usernames
Powered by Gentoo
never ever ever use the hardened option in make.conf!
- 10-18-2004 #2Just Joined!
- Join Date
- Oct 2004
- Location
- Newport News, VA
- Posts
- 14
hopefully you keep a backup of your important files like this. if so just restore from backup. if not, im sorry but you will have to try and recreate them.
etc-update isnt the best way to update your files, and i hope this teaches you that. also should teach you that backups are essential, if you dont already backup. a nightly cron to do /etc /home /var would be your best back. look into flexbackup once you get everything straight (emerge -s flexbackup). i use it on several machines and its quite nice.
find /etc -iname '._*'
will show you what new config files are. you can then step through them one by one and figure out what you want to copy over, and what you wish to delete. its can be a bit time consuming at times, but you also wont have a script over writing your changes.
- 10-19-2004 #3
What I do (as I haven't set up dispatch-conf yet) is etc-update to view the files. Then I'll -1 to exit and remove the ._cfgs that I don't want to overwrite my files.

Unfortunately, there's no way to get back what was lost. Check out dispatch-conf. It basically does etc-update's job with a little version control.
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
- 10-22-2004 #4Linux Engineer
- Join Date
- Jul 2003
- Location
- Uppsala, Sweden
- Posts
- 1,278
if you were reasonably sane when performing etc-update then in changed the origional files to backup files simple restore these files. then read the manpage :)
Proud to be a GNU/Gentoo Linux user!
- 11-01-2004 #5Linux Engineer
- Join Date
- Jul 2003
- Location
- Uppsala, Sweden
- Posts
- 1,278
note: etc-update is pretty good nowadays and rarely needs to update any files.. i installed on a box a few weeks ago and have had to run it only once and it only automerged one file :)
Proud to be a GNU/Gentoo Linux user!


Reply With Quote
