Linux: Setting File Permissions On Folders and Directories

To set all the files and folders in a directory to 755 use chmod:
chmod -R 755 /foo/bar

To set the directories to 755 and set the file to 644 for this you can use the find command e.g.
to change all the directories to 755:
find /foo/bar -type d -exec chmod 755 {} \;
to change all the files to 644:
find /foo/bar -type f -exec chmod 644 {} \;

One Reply to “Linux: Setting File Permissions On Folders and Directories”

  1. [1840]cristalpoker Official Login | বিকাশ পেমেন্ট ও সেরা বোনাস ক্যাসিনো,cristalpoker-এ লগইন করে উপভোগ করুন সেরা অনলাইন স্লট গেম। বিকাশ পেমেন্ট সুবিধা এবং আকর্ষণীয় বোনাস নিয়ে আজই অ্যাপটি ডাউনলোড করে খেলা শুরু করুন। visit: cristalpoker

Leave a Reply

Your email address will not be published. Required fields are marked *