Thread View: comp.unix.shell
1 messages
1 total messages
Started by Frank P. Bresz
Fri, 21 Dec 1990 17:57
Re: Setting (Recursively) Modes on Files
Author: Frank P. Bresz
Date: Fri, 21 Dec 1990 17:57
Date: Fri, 21 Dec 1990 17:57
45 lines
1867 bytes
1867 bytes
Yesterday I said :
>>Hi,
>> I often have the case where I want to open up an area of a
>>directory to group access. However I am using SCCS and have many files
>>that should remain read only. A mindless
>> chmod -R g+w .
>> Trashes the sanctity of SCCS by making some things group writable
>>while they aren't user writable.
>> How can I cleanly execute this command?
>> awk/sed/sh/find (or whatever) accepted
>> Please no PERL or CSH.
>> SunOS4.1 (but please don't make it specific to that platform)
Well the answer from Gene Spafford <spaf@cs.purdue.edu>
was the exact answer I was looking for :
>chmod -R g=u .
>will set the group protections for all files and directories to the
>the same as the owner protections.... is that what you wanted?
>
>--spaf
Thanks a lot Gene, for a neat concise answer. I guess I didn't
quite get the meaning of = and the phrase :
The letters u, g, or o indicate that permission is to
be taken from the current mode for the user-class.
This is being sent to try and stem the tidal wave of answers.
--
| () () () | Frank P. Bresz | Westinghouse Electric Corporation
| \ /\ / | fpb@ittc.wec.com | ITTC Simulators Department
| \/ \/ | uunet!ittc!fpb | Those who can, do. Those who can't, simulate.
| ---------- | +1 412 733 6749 | My opinions are mine, WEC don't want 'em.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads