On Fri, Jul 05, 2013 at 08:31:56PM +0200, Gerhard Wolfstieg wrote: > wie kann ich (mit chmod) exklusiv directories wieder ausführbar machen? > Wie kann ich in Zukunft ausschließlich normalen Dateien rekursiv die > Ausführbarkeit entziehen? > > Oder allgemeiner: wie kann man getrennt nach Ordnern und Dateien > Attribute setzen/löschen? Mit chmod möglicherweise gar nicht, aber mit find: find -L /home -type d -exec chmod +x {} + find -L /home -type f -exec chmod -x {} + Wenn's arg viele Dateien sind, eventuell nicht direkt find ausführen lassen sondern nochmal nach xargs pipen. Grüße Alex -- »With the first link, the chain is forged. The first speech censured, the first thought forbidden, the first freedom denied, chains us all irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie) *** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0 ***
Attachment:
pgptjYImVVAf7.pgp
Description: PGP signature