[nycbug-talk] Yup, I did it: chown -R ....
matt at atopia.net
Fri Nov 7 16:35:13 EST 2008
At least it was production.
Here's a shell script that should be tied into "su" or "sudo":
[[ $SICK ]] && exit;
On Fri, 7 Nov 2008, Siobhan P. Lynch wrote:
> I just did the same thing (well similar, I copied passwd, shadow, and group
> files to /etc on a solaris machine, and forgot to make sure the perms were
> correct) on a non-production machine... I also am sick (possible strep
> throat, my son now has Bronchitis, and we're both on Zithromax)
> Now I need to go down top the datacenter this weekend and bring it into
> single user mode to fix it...
> How fun.
> On Nov 7, 2008, at 12:35 PM, Matt Juszczak wrote:
>> New rule to myself: NEVER FORCE YOURSELF to work when you're under the
>> I've felt horrible for a few days now, and it shows. I meant to chown -R
>> root:users /some/directory but ended up doing it to the root. I ctrl-c'd
>> about 2 seconds later but damage was already done.
>> Luckily, I have a few other boxes and I compared them to this one with a
>> custom script and was able to get the group back to where it was, but I'm
>> afraid I set files that shouldn't be owned by root to being owned by root.
>> At this point, I'm just wondering if I'm missing anything, or if there is
>> a program out there that will run through your user:group/permissions
>> settings (of course on system files only) verifying they are set correctly
>> compared to the base install or something.
>> Any suggestions?
>> talk mailing list
>> talk at lists.nycbug.org
More information about the talk