Hallo!
Ich möchte mit chmod für sehr viele (Unter-)Ordner die Rechte setzen.
Jedoch finde ich keine entsprechenden Parameter.
Und für über 500 Ordner es zu setzen, ist einfach zu aufwändig.
Und die Dateien müssen ihre Rechte behalten!
Beste Grüße,
Sven Reichelt
Chmod nur für Ordner?
-
- Posts: 2138
- Joined: 2002-12-15 00:10
- Location: Bergheim
Re: Chmod nur für Ordner?
Code: Select all
find . -type d -exec chmod 755 '{}' ;
-
- Userprojekt
- Posts: 7066
- Joined: 2002-10-09 14:30
- Location: Dorsten
Re: Chmod nur für Ordner?
...und am allerbesten schaust du dir dabei direkt die Verwendung von xargs in Verbindung mit find an.
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
-
- Project Manager
- Posts: 11186
- Joined: 2003-02-27 01:00
- Location: Hamburg
Re: Chmod nur für Ordner?
Code: Select all
find . -type d -print0 | xargs -0 chmod 0755
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.