Unix permissions

From Attie's Wiki
Jump to: navigation, search

Permissions can be a pain...

Use the following find commands to give more global permissions:

  • for files: group and other will be granted read and execute, if the owner has each of these
  • for directories: all will be set to 0755
find "${ROOT_DIR}" -type d -exec chmod 755 {} \;
find "${ROOT_DIR}" -type f -not -perm /0077 | xargs ls -l | tr -s ' ' | cut -d ' ' -f 1,9 | sed -re 's/^(.)((r)|-)((w)|-)((x)|-)....../chmod g=\2\7,o=\2\7/' | bash
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox