* Chmod of fs hoses all others too
@ 2000-03-01 5:00 Gerald Heinig
2000-03-01 5:00 ` Daniel S. Riley
0 siblings, 1 reply; 3+ messages in thread
From: Gerald Heinig @ 2000-03-01 5:00 UTC (permalink / raw)
Hi all,
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??
Also, users can�t log in anymore getting "No shell" errors.
How the hell does something like that work?!? You do a chmod on one
*filesystem*, and it hoses (ie. changes) another one.
Any ideas *much* appreciated
Cheers
Gerald
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Chmod of fs hoses all others too
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
0 siblings, 1 reply; 3+ messages in thread
From: Daniel S. Riley @ 2000-03-01 5:00 UTC (permalink / raw)
To: Gerald Heinig
[-- 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"
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Chmod of fs hoses all others too
2000-03-01 5:00 ` Daniel S. Riley
@ 2000-03-02 5:00 ` Gerald Heinig
0 siblings, 0 replies; 3+ messages in thread
From: Gerald Heinig @ 2000-03-02 5:00 UTC (permalink / raw)
To: Daniel S. Riley
"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"
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-03-02 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox