Fish Touching🐟🎣

Linux Permission

Jun 21, 2023

# File Permission

The permissions consist of three groupings: what the owner of the file can do to it, what someone in a group can do to the file, and finally, what anyone (sometimes referred to as other) can do.

# chown

Change the owner of file.
user:group

# chmod

Change file permission
chmod permissions filename
There are 2 ways to use the command –

  1. Absolute mode
  2. Symbolic mode

Use mask to get the result. Maximum is 111, the left-most bit is read, middle bit is write, right-most bit is execute.

# Sudo Group

# Adding User to the sudo Group
usermod -aG sudo username