Chown all folders 755, files 644 in Linux


/ Published in: Bash
Save to your folder(s)

Sets the permissions for all folders to 755, and for all files 644.

Useful for SUPHP configurations which required this specific permission setup.


Copy this code and paste it in your HTML
  1. find . -type d -print0 | xargs -0 chmod 0755 # For directories
  2. find . -type f -print0 | xargs -0 chmod 0644 # For files

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.