View previous topic :: View next topic |
Author |
Message |
Akaihiryuu l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 08 May 2003 Posts: 798 Location: Columbus, OH
|
Posted: Sat Jan 21, 2006 2:25 am Post subject: Messed up ownerships in /etc |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
thebigslide l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Southpark/avatar21.gif)
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Sat Jan 21, 2006 2:41 am Post subject: |
|
|
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 ![Surprised :o](images/smiles/icon_surprised.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Akaihiryuu l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 08 May 2003 Posts: 798 Location: Columbus, OH
|
Posted: Sat Jan 21, 2006 2:56 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
thebigslide l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Southpark/avatar21.gif)
Joined: 23 Dec 2004 Posts: 792 Location: under a car or on top of a keyboard
|
Posted: Sat Jan 21, 2006 6:54 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|