Booting in single-user mode allowed me to fix the permissions with no
problem.
Robert T Wyatt wrote:
Please help! I think I have now officially drained all my accumulated
Unix Wizard points (as if my apache2 problems hadn't already...).
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.
This is a MacOS 10.3.9 dual G5.
Anyhow, I won't be able to login as root to fix this since I don't know
root's password and I can't invoke sudo su since sudo won't work. So I
think I'm in a real bind, not that I'm sure I could have fixed this as
root. Single-user boot with fsck -fy did not fix this. I am able to
login a single-user though, so maybe I'll try to mount the file system
and change the permissions, but I don't know if it will work there any
better. I would like to wait a little while to see if someone listening
has some good advice (besides "don't do that")
If there is a method that can be used but only with the root password,
please go ahead and tell me what that is and I will go grovel with my
LAN administrator for the root password. Normally he leaves me to my own
since he's a PC person, but I sure don't want to hear what he would say
about this....
(I have scrubbed the output below of personal data.)
Feb 8 08:41:46 thiscomputer sudo: adminuser : TTY=ttyp1 ;
PWD=/Users/adminuser ; USER=root ; COMMAND=/bin/chmod -R 755 /private/etc
Feb 8 08:42:36 thiscomputer sudo: adminuser : /private/etc/sudoers
is mode 0755, should be 0440 ; TTY=ttyp1 ; PWD=/Users/adminuser ;
USER=root ; COMMAND=/bin/chmod -R 755 /Library/StartupItems
Feb 8 08:42:59 thiscomputer sudo: adminuser : /private/etc/sudoers
is mode 0755, should be 0440 ; TTY=ttyp1 ; PWD=/Users/adminuser ;
USER=root ; COMMAND=/bin/chmod -R 440 /private/etc
Feb 8 08:43:13 thiscomputer sudo: adminuser : /private/etc/sudoers
is mode 0755, should be 0440 ; TTY=ttyp1 ; PWD=/Users/adminuser ;
USER=root ; COMMAND=/bin/chmod -fR 440 /private/etc
Thanks,
Robert
ps Aaargh!
-------------------------------------------------------
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&kid=103432&bid=230486&dat=121642
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users