On 02/08/06 at 16:51, Robert T Wyatt wrote:

> Christopher Bort wrote:
> > On 02/08/06 at 07:26, Robert T Wyatt wrote:
> > 
> >> I did a *very bad thing* when I was trying to get a startup script
> >> for HenWen to run and I'm not sure how to recover. I changed the
> >> permissions on /private/etc to 755 recursively (was supposed to
> >> have been a different directory), this means that I now get a
> >> security error when invoking sudo "/private/etc/sudoers is mode
> >> 0755, should be 0440" and there are probably other problems I
> >> haven't discovered yet.
> > 
> > Have you tried running Repair Disk Permissions from Disk Utility?
> > It may not put everything quite back to where it was, but I expect
> > it should fix permissions on files in /private/etc that are
> > installed with the OS, including sudoers.
> 
> After re-reading your post I realized that I did not actually try to
> run the Disk Utility GUI until after I manually changed permissions
> on sudoers.

Right. The point of my suggestion was to find out if Repair Permissions
would fix the permissions on sudoers w/o having to boot in SUM. I've never
had to do this myself, so I don't know for sure one way or the other.  ;-]
Once sudoers perms are fixed, though, it's probably a good idea to run
Repair Permissions in order to fix permissions on as many other
/private/etc/* files as possible that may have been fuxored by your
recursive chmod. I know you said you did this; I'm curious as to how well
it did getting you back to a good state?

BTW, in case you're not aware of it, Repair Permissions is not available
only through the Disk Utility GUI. It can also be run from a shell with
`diskutil repairPermissions`.

> The reason I didn't is because I tried fsck and it failed and
> because everything else requiring elevated privileges was also
> failing. It might have worked, but I don't know and don't intend
> to put myself there again just to find out. ;-)

Quite understandable.  8^)
-- 
Christopher Bort
<[EMAIL PROTECTED]>
<http://www.thehundredacre.net/>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to