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: dsr@mail.lns.cornell.edu (Daniel S. Riley) Subject: Re: Chmod of fs hoses all others too Date: 2000/03/01 Message-ID: #1/1 X-Deja-AN: 591957923 References: <38BD6D95.4B63562E@post.rwth-aachen.de> To: Gerald Heinig Organization: LNS, Cornell U., Ithaca, NY 14853 Newsgroups: comp.sys.dec 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. > 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 "History teaches us that days like this are best spent in bed"