From: dsr@mail.lns.cornell.edu (Daniel S. Riley)
To: Gerald Heinig <Gerald.Heinig@post.rwth-aachen.de>
Subject: Re: Chmod of fs hoses all others too
Date: 2000/03/01 [thread overview]
Message-ID: <shln42e3jw.fsf@lns130.lns.cornell.edu> (raw)
In-Reply-To: 38BD6D95.4B63562E@post.rwth-aachen.de
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]
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.
> 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.
--
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"
next prev parent reply other threads:[~2000-03-01 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 [this message]
2000-03-02 5:00 ` Gerald Heinig
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