Setting (Recursively) Modes on Files

Frank P. Bresz fpb at ittc.wec.com
Fri Dec 21 04:05:34 AEST 1990


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)
--
| ()  ()  () | Frank P. Bresz   | Westinghouse Electric Corporation
|  \  /\  /  | fpb at 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.



More information about the Comp.unix.admin mailing list