is there a way to automatially set sudo chmod 777 for all the files, folder and subfolders in a directory. The sudo chmod 777 should automatically be set when a folder or a file is created in the parent directory.
Is there a way to do that?
|
is there a way to automatially set Is there a way to do that? |
|||||||||
|
|
One way that comes to mind is the
then, add the option 'acl' to the mount point in /etc/fstab
finally, remount the drive so the changes take effect
After doing this, you can use the
For reference, here's the man page for setfacl. Also, while these permissions will apply by default to newly-created sub-files and folders, setfacl can still be used to change the rights after the fact if desired. Finally, after enabling ACLs, you can see which files/folders have an ACL replied in the output of your
|
|||||||||
|
|
In bash execute Note that the umask is "bitwise xor" of the desired file permissions and to get the most permissive mode of 777 you need to use umask 000. In recent Ubuntu systems you set the systemwide umask in file Please do have in mind that people who create operating systems know a thing or two about security and have chosen umask 022 for a reason. You will make your computer quite insecure if you follow this advice. |
|||
|
|