[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] I'm an idiot - please help me
- Subject: Re: [cobalt-users] I'm an idiot - please help me
- From: flash22@xxxxxxx
- Date: Fri Mar 16 22:08:22 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Thu, 15 Mar 2001, Chris Moreton wrote:
> Hi,
>
> I'm afraid I have done something amazingly bad.
I have executed the command chown -R 755 * as
root as part of a cron script I was writing,
thereby causing the owner of almost everything to become "755".
Neat trick ;) You don't win the prize tho, i still keep that for mkfs'ing
/
As carrie said, where did you do this? if you were in / you have a bit of
a problem -/
since your machine rebooted tho, i'm gonna hazard a guess you were in
home.
Quick, dirty, will only more or less fix for email...
cd /home/spool/mail
for i in *;do chown $i $i;done
chown root .
chown root 1
(because the name of the mail folder is more or less the username of who
owns it, cept long usernames break it)
Fixing sites will probably take a little script programming ;)
The home directories in the passwd file will give you a reasonable default
for who owns what where, tho cgi's are gonna all be hosed tho...
If you say frontpage i'll , um...
and apache isn't gonna be happy till the owner on /home and the top level
sites is right...(755 isn't a member of any group ;)
*(Exactlly what this should be depends on what raq ;)
gsh