Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Gerald Heinig <Gerald.Heinig@post.rwth-aachen.de>
To: "Daniel S. Riley" <dsr@mail.lns.cornell.edu>
Subject: Re: Chmod of fs hoses all others too
Date: 2000/03/02	[thread overview]
Message-ID: <38BDAB55.C1E68AD5@post.rwth-aachen.de> (raw)
In-Reply-To: shln42e3jw.fsf@lns130.lns.cornell.edu


"Daniel S. Riley" wrote:

> The following message is a courtesy copy of an article
> that has been posted to comp.sys.dec as well.
>
> Gerald Heinig <Gerald.Heinig@post.rwth-aachen.de> writes:
> > I�m a Tru64 (though not Unix) newbie and I have a *really* weird
> > problem: a colleague (No, it wasn't me, honest :-) ) did a
> >
> > chmod -R 774 *
> >
> > on /u01. The filesystem is AdvFS. This chmod also changed *all* the
> > permissions on /etc and possibly on / as well!! How the hell can *that*
> > happen??
>
> One way it can happen is if /u01 contains a link up to the parent
> (root) directory, and you use the chmod from the GNU fileutils
> package.  '*' won't include '..', but if you have a soft link to '..'
> or '/' with a name that is in the expansion of '*', GNU chmod will
> follow it.  I believe there are other ways as well--that's just an
> example.  'chmod -R 774 .' is safer.

There were definitely no soft links anywhere.

>
>
> > Also, users can�t log in anymore getting  "No shell" errors.
>
> Perhaps it did /usr/bin as well, and your users now don't have
> permission to execute their shells?  If so, I recommend reading the
> man page for fverify, which can at least fixup the permissions of the
> operating system supplied files.

/usr/bin got fried as well as /etc and some other directories. I have a nasty
feeling the whole system got the treatment due to '.' and '..' being included
in the wildcard expansion and then getting changed recursively as well. This
was pointed out to me by another reply (thanks again Alan :-) ). I�ll take a
look on friday.
Thanks for the fast response and I�ll check out fverify.

Cheers,

Gerald

>
> --
> Dan Riley                                         dsr@mail.lns.cornell.edu
> Wilson Lab, Cornell University      <URL:http://www.lns.cornell.edu/~dsr/>
>     "History teaches us that days like this are best spent in bed"






      reply	other threads:[~2000-03-02  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-01  5:00 Chmod of fs hoses all others too Gerald Heinig
2000-03-01  5:00 ` Daniel S. Riley
2000-03-02  5:00   ` Gerald Heinig [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox