[最も共有された! √] chmod example for directory 304971
For example, to explicitly make file3 readable and executable to everyone chmod ugo=rx file3 The all (a) mode is the same as ugo, allowing the previous command to be expressed as chmod a=rx file3 For more information on changing permissions, run this command man chmod Related Articles How do I fix the permissions on my html directory and files?To set group read/write/execute permissions on the directory /public/teamdir and all its files and subdirectories chmod R grwx /public/teamdir; Also, as Anthon points out, the find command given in the other answer executes the chmod program once for each worldwritable file it finds It is slightly more efficient to say find toplevel_directoryperm 2 type f exec chmod ow {} This executes chmod with many files at once, minimizing the number of execs PS Chmod Command In Linux With Examples Geeksforgeeks Chmod example for directory