View previous topic :: View next topic |
Author |
Message |
gwalters n00b
Joined: 18 Mar 2004 Posts: 4
|
Posted: Mon Oct 18, 2004 5:17 am Post subject: etc-update wreaks havic |
|
|
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:
Code: | whoami: cannot find username for UID 100 |
and my terms. look like this:
Code: | I have no name!@gwalters ~ $ |
and 'top' only shows UID's not usernames. mplayer doesnt work anymore and says:
Code: | could not get user name from user id |
How can I fix all this? |
|
Back to top |
|
|
hardcore l33t
Joined: 01 Nov 2003 Posts: 626 Location: MSU, MI
|
Posted: Mon Oct 18, 2004 5:59 am Post subject: |
|
|
I'm guessing that you auto-updated everything. You should never do this unless you know what you're doing. I'm not even sure where to begin to tell you what to do. Try to remember what was updated, and try to edit those files. Hopefully somebody else has a good idea. _________________ Nothing can stop me now, cuz I just don't care. |
|
Back to top |
|
|
Regor Guru
Joined: 06 Aug 2002 Posts: 545 Location: 39° 2' 48" N, 120° 59' 2" W
|
Posted: Mon Oct 18, 2004 8:16 am Post subject: |
|
|
etc-update is a disaster waiting to happen for this exact reason.
You're going to need to re-add your normal user as root. Take a look at "adduser" or "superadduser". _________________ Sometimes the appropriate response to reality is to go insane.
-Philip K. Dick, Valis |
|
Back to top |
|
|
zerojay Veteran
Joined: 09 Aug 2003 Posts: 1033
|
Posted: Mon Oct 18, 2004 8:54 am Post subject: |
|
|
Regor wrote: | etc-update is a disaster waiting to happen for this exact reason.
You're going to need to re-add your normal user as root. Take a look at "adduser" or "superadduser". |
Actually, it's having an admin that doesn't pay attention to what etc-update tells him that is the disaster waiting to happen. The only people that have problems with etc-update are the irresponsible ones that tell it to auto-update everything without looking to see what changes etc-update wants to make. |
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Mon Oct 18, 2004 9:12 am Post subject: |
|
|
DarkStalker wrote: | Actually, it's having an admin that doesn't pay attention to what etc-update tells him that is the disaster waiting to happen. The only people that have problems with etc-update are the irresponsible ones that tell it to auto-update everything without looking to see what changes etc-update wants to make. |
Bit harsh maybe, but hard to argue.
I'm a recent convert to Gentoo, only ever used Redhat previously.
etc-update *IS* a bloody minefield - I tip-toe through it every time I need to use it. Doesn't seem to respect using "less" for the diff list.
Can take forever to convince yourself you know what is being changed. |
|
Back to top |
|
|
piffle Tux's lil' helper
Joined: 14 Jun 2004 Posts: 98
|
Posted: Mon Oct 18, 2004 4:10 pm Post subject: |
|
|
dispatch-conf, while not perfect, is a damned sight better than etc-uptdate, which I will never use again. |
|
Back to top |
|
|
NewBlackDak Guru
Joined: 02 Nov 2003 Posts: 512 Location: Utah County, UT
|
Posted: Mon Oct 18, 2004 7:18 pm Post subject: |
|
|
I've given all the auto conf updating stuff up. I have a cron that runs, and tells me where the new configs are. Then I print them, and hand-edit. etc-upodate isn't logical to me, and it's broken atleast 2 systems. _________________ Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy |
|
Back to top |
|
|
dwblas Guru
Joined: 14 Jul 2003 Posts: 525 Location: Southern California (No jokes please)
|
Posted: Mon Oct 18, 2004 7:42 pm Post subject: |
|
|
I take it that no one here backs up anything. |
|
Back to top |
|
|
NewBlackDak Guru
Joined: 02 Nov 2003 Posts: 512 Location: Utah County, UT
|
Posted: Mon Oct 18, 2004 7:49 pm Post subject: |
|
|
dwblas wrote: | I take it that no one here backs up anything. |
On the contrary. Important configs are backed up every night. However, it's easier to hand edit the first time than run the update, find out it's wrong, put the backup in, and still have to hand edit. _________________ Gentoo systems.
X2 4200+@2.6 - Athy
X2 3600+ - Myth
UltraSparc5 440 - sparcy |
|
Back to top |
|
|
Regor Guru
Joined: 06 Aug 2002 Posts: 545 Location: 39° 2' 48" N, 120° 59' 2" W
|
Posted: Tue Oct 19, 2004 5:36 am Post subject: |
|
|
I back up regularly. I also use a config file updater that does its own backups, so you can always revert to an older version if needed. Check out dispatch-conf as a superior (imo) alternative to etc-update. _________________ Sometimes the appropriate response to reality is to go insane.
-Philip K. Dick, Valis |
|
Back to top |
|
|
|