Linux File Permissions - Harrison-Blair/SYS-255 GitHub Wiki

Add a Group : groupadd "groupname"

Assign user to a Group : usermod -aG "group_name" "user"

Assign a Group to a directory/file : chgrp "group_name" "directory/file"

Change the rwe permissions on a file : chmod -v ugo "directory/file"

  • [u]ser: rwe
  • [g]roup: rwe
  • [o]ther: rwe

Summation Formula

  • read 100 4
  • write 010 2
  • execute 001 1