Skip to content

This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!

File permissions

with chmod, chown, chgrp, getfacl, umask, ...



Table of contents


  • recursive folder (only folders and not files) group rights inheritance:
    $ find /your/path/here -type d -exec chmod g+s {} \;

$  chmod ugo+rwx
same as
$  chmod a+rwx
same as
$  chmod +rwx

$  chmod -R ug+rw



  • how to
    • chmod ug+rw && chmod o+r && chmod o-w recursively if no execution right
    • chmod ug+rwx && chmod o+rx && chmod o-w recursively if execution right

If this cheat sheet has been useful to you, then please consider leaving a star here.