How to make all new files in a directory executable
9,038
You can change permission of a directory using the following command
chmod -R 700 directory
where -R ----> recursively apply permission all sub-directories and files under directory
Related videos on Youtube
Author by
Hashken
Updated on September 18, 2022Comments
-
Hashken over 1 year
I want a way by which whenever I create a new file in a particular directory, I want it to be executable by default.
Is this even possible, if so how?
-
Admin over 10 years
-
Admin over 10 yearsThis is the easiest to read document regarding ACL (Access Control Lists) I could find: help.ubuntu.com/community/FilePermissionsACLs
-
-
Rinzwind over 10 yearsThat is not what he wants. He wants it automatic.
-
m. öztürk over 10 yearsOk, completed my answer.
-
Kevin almost 9 yearsBy my understanding, this will mark all existing files as executable, but any new files written after running this will not be.