Michael Welle: > Hallo, > > Jochen Spieker <ml@well-adjusted.de> writes: > >> Spiro Trikaliotis: >>> >>> Du kannst dir mal die --recursive (a.k.a. -R) Option anschauen. Die >>> könnte sein, was du willst. >>> >>> Eventuell willst du aber auch ein find benutzen, um die Rechte zwischen >>> Dateien und Ordnern unterschiedlich zu gestalten? >>> >>> Also z.B.: >>> >>> find $DIR -type d -exec chmod 755 \{\} \+ >>> find $DIR -type f -exec chmod 644 \{\} \+ >> >> Das hier ist äquivalent: >> >> chmod -R u=rwX,g=rX,o=rX $DIR > > nein, ist es nicht. Die X wirken u.U auch auf Dateien. Eine Datei, die > vorher den Modus 744 hatte, hat danach alle x-bits gesetzt. Danke, das war mir nicht bewusst. J. -- If I am asked 'How are you' more than a million times in my life I promise to explode. [Agree] [Disagree] <http://www.slowlydownward.com/NODATA/data_enter2.html>
Attachment:
signature.asc
Description: Digital signature