Jump to content

Frage zu chmod


hawihoney

Recommended Posts

Das "New Permissions" Tool von Unraid führt z.B. die folgenden beiden Befehle aus:

 

chmod -R u-x,go-rwx,go+u,ugo+X '/mnt/disk1'
chown -R nobody:users '/mnt/disk1'

 

Ich hatte sporadisch immer die folgenden Befehle ausgeführt:

 

find /mnt/disk1 -type f -not -perm 666 -exec chmod 666 {} \;
find /mnt/disk1 -type d -not -perm 777 -exec chmod 777 {} \;

find /mnt/disk1 -type f -not -user nobody -exec chown nobody:users {} \;

 

Wie Ihr seht mache ich einen Unterschied zwischen Dateien (-type f) und Ordnern (-type d). Wird das durch den Unraid chmod Befehl ebenfalls gemacht? Und ist das überhaupt erforderlich? Ich muss gestehen, dass sich mir, selbst nach mehrmaligem Lesen des chmod Manuals, die chmod Syntax mit den Buchstaben nicht ganz erschlossen hat.

 

Vielen Dank.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...