Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/passwd- and /etc/group- ???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
williams_dr
n00b
n00b


Joined: 17 Dec 2002
Posts: 2

PostPosted: Tue Dec 17, 2002 1:34 am    Post subject: /etc/passwd- and /etc/group- ??? Reply with quote

Hi all,

Hope someone can shed some light on this for me. Not sure if this is the right forum for this, but it seems security related, so here goes. I've searched the forums some and haven't seen this before, but forgive me if it's been answered elsewhere.

Just finished installing Gentoo 1.4 rc1 and I discovered that in addition to /etc/passwd and /etc/group, I have a /etc/passwd- and /etc/group- (note the hyphen on the ends).

Permissions seem to be 644 on passwd and group and 600 on passwd- and group-.

Can anyone explain what the *- files are for? adduser and the like appear to update passwd and group, but certain system apps seem to reference passwd- instead of passwd (kdm for example in coming up with the list of usernames to present in the login icon box. This is in fact how I discovered the other files; my newly created username didn't show up).

What's the scoop?

Thanks for any help.

Dave
Back to top
View user's profile Send private message
Neo-einstein
n00b
n00b


Joined: 17 Dec 2002
Posts: 27
Location: Luxembourg

PostPosted: Wed Dec 18, 2002 9:40 am    Post subject: Reply with quote

If I'm not completely wrong the hyphened files are a kind of backup copy of the real ones. Thou it is strange that kdm refers to them and to the real ones :?:
Try restarting X or KDE to see your new users show up !
_________________
n-e
Back to top
View user's profile Send private message
williams_dr
n00b
n00b


Joined: 17 Dec 2002
Posts: 2

PostPosted: Wed Dec 18, 2002 12:11 pm    Post subject: Reply with quote

Thanks for the reply. You are correct that they are backups, as I discovered last night fooling around some more.

I also found the kdm problem last night. My supposition that kdm was referring to the wrong passwd file was incorrect as it turned out. I discovered while reading through more of the documentation on the KDE site that kdm will only list users who have a default shell listed in /etc/passwd, and my entry was missing that field. As soon as I put /bin/bash in passwd explicitly, it worked fine.

Thanks,

Dave
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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