Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!njin!princeton!phoenix.Princeton.EDU!subbarao From: subbarao@phoenix.Princeton.EDU (Kartik Subbarao) Newsgroups: comp.unix.shell Subject: Re: Setting (Recursively) Modes on Files Message-ID: <4883@idunno.Princeton.EDU> Date: 20 Dec 90 20:25:59 GMT References: Sender: news@idunno.Princeton.EDU Distribution: usa Lines: 34 In article fpb@ittc.wec.com (Frank P. Bresz) writes: > >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 Find seems up to this task. To add group read & write permissions to any file here or lower that's writable to the user: find . -perm -0600 -exec chmod g+rw "{}" \; -Kartik -- internet# ls -alR | grep *.c subbarao@{phoenix or gauguin}.Princeton.EDU -|Internet kartik@silvertone.Princeton.EDU (NeXT mail) -| SUBBARAO@PUCC.BITNET - Bitnet