From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1164f8,cfcb04a10176291d X-Google-Attributes: gid1164f8,public From: Gerald Heinig Subject: Re: Chmod of fs hoses all others too Date: 2000/03/02 Message-ID: <38BDAB55.C1E68AD5@post.rwth-aachen.de>#1/1 X-Deja-AN: 591991069 Content-Transfer-Encoding: 8bit References: <38BD6D95.4B63562E@post.rwth-aachen.de> To: "Daniel S. Riley" X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 951954366 3788 137.226.8.133 (1 Mar 2000 23:46:06 GMT) Organization: Aachen University of Technology (RWTH) Mime-Version: 1.0 NNTP-Posting-Date: 1 Mar 2000 23:46:06 GMT Newsgroups: comp.sys.dec "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 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 > "History teaches us that days like this are best spent in bed"