Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
etc-update wreaks havic
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gwalters
n00b
n00b


Joined: 18 Mar 2004
Posts: 4

PostPosted: Mon Oct 18, 2004 5:17 am    Post subject: etc-update wreaks havic Reply with quote

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
View user's profile Send private message
hardcore
l33t
l33t


Joined: 01 Nov 2003
Posts: 626
Location: MSU, MI

PostPosted: Mon Oct 18, 2004 5:59 am    Post subject: Reply with quote

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
View user's profile Send private message
Regor
Guru
Guru


Joined: 06 Aug 2002
Posts: 545
Location: 39° 2' 48" N, 120° 59' 2" W

PostPosted: Mon Oct 18, 2004 8:16 am    Post subject: Reply with quote

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
View user's profile Send private message
zerojay
Veteran
Veteran


Joined: 09 Aug 2003
Posts: 1033

PostPosted: Mon Oct 18, 2004 8:54 am    Post subject: Reply with quote

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
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Mon Oct 18, 2004 9:12 am    Post subject: Reply with quote

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
View user's profile Send private message
piffle
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jun 2004
Posts: 98

PostPosted: Mon Oct 18, 2004 4:10 pm    Post subject: Reply with quote

dispatch-conf, while not perfect, is a damned sight better than etc-uptdate, which I will never use again.
Back to top
View user's profile Send private message
NewBlackDak
Guru
Guru


Joined: 02 Nov 2003
Posts: 512
Location: Utah County, UT

PostPosted: Mon Oct 18, 2004 7:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
dwblas
Guru
Guru


Joined: 14 Jul 2003
Posts: 525
Location: Southern California (No jokes please)

PostPosted: Mon Oct 18, 2004 7:42 pm    Post subject: Reply with quote

I take it that no one here backs up anything.
Back to top
View user's profile Send private message
NewBlackDak
Guru
Guru


Joined: 02 Nov 2003
Posts: 512
Location: Utah County, UT

PostPosted: Mon Oct 18, 2004 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Regor
Guru
Guru


Joined: 06 Aug 2002
Posts: 545
Location: 39° 2' 48" N, 120° 59' 2" W

PostPosted: Tue Oct 19, 2004 5:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum