Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Messed up ownerships in /etc
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
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Sat Jan 21, 2006 2:25 am    Post subject: Messed up ownerships in /etc Reply with quote

I just happened to check my /etc directory, and somehow all of my ownerships have gotten messed up. Virtually the whole directory is owned by one of the regular accounts I have instead of root, so it's <user>:users for most of it. I need to change this back to what it's supposed to be, but I don't remember what the ownerships in /etc are supposed to be. Can anyone check their /etc for ownerships and see what most packages are? I have a feeling that most of it will be root:root, but I do have apache, postfix, and a few other things like that installed that will need the correct ownerships. I really don't want to have to spend a week reinstalling this thing and getting it back to where it was. And it's ONLY /etc that has the problem, so I think it's likely something that's fixable. Any assistance in this matter would be greatly appreciated. I think I might've done it accidentally with a mistyped chown command...
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Sat Jan 21, 2006 2:41 am    Post subject: Reply with quote

It's mostly root:root
common exceptions: vpopmail.conf is root:vpopmail, the portage subdir is root:portage (recursively)
other than that, should work
try restarting all yer services and see what fails :o
Back to top
View user's profile Send private message
Akaihiryuu
l33t
l33t


Joined: 08 May 2003
Posts: 798
Location: Columbus, OH

PostPosted: Sat Jan 21, 2006 2:56 am    Post subject: Reply with quote

Okay...a couple of other directories I have questions about that are only on this system (my other Gentoo systems don't have those packages installed):

apache, apache2, apcupsd, bind, cups, firebird, mysql, squid, unrealircd, ircservices, and vhosts

Could someone check the ownerships on these directories in /etc?
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 792
Location: under a car or on top of a keyboard

PostPosted: Sat Jan 21, 2006 6:54 pm    Post subject: Reply with quote

cups is root:lp
apache, apache2, mysql, vhosts are all root:root
try the others are root:root as that seems likely and restart the services.
if they won't restart, you'll have to less /etc/group maybe and look for likely candidate groups.
Or you could reemerge those packages, check which group portage sets the dir to and then
Code:
chgrp -R [groupname] /etc/dirname
then you'd just do
Code:
find /etc/ -name ._cfg* -exec rm -ir {} ;
which will get rid of that 'you have blah config files to update' message when you run portage.
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