Linux User Management

Cheatsheet for Linux User Management Handling users # adds a new user called 'schoeffm' useradd -m -s /bin/zsh -G docker schoeffm # └┬┘└────┬─────┘└─┬─────┘ # │ │ │ # │ │ └─> List of groups the user # │ │ should be a member of # │ └─> login shell of the new account # └────────> also create a home directory for this # account # Assigns a new UID to <─────┐ # this account │ # ┌──┴──┐ usermod -aG docker -s /bin/zsh -L|U -u 4711 schoeffm # └───┬────┘ └───┬─────┘ └─┬─┘ # │ │ └─> Lock or Unlock user # │ └─> set new login shell for account # └────────────> append to the list of groups # without 'a' this will replace # the group list userdel not explicitly shown here since it’s comprehensible....

August 10, 2019 · 3 min · schoeffm

Linux Permission Management

Cheatsheet for Linux Permission Management Standard Permissions There are three basic permissions which are read, write and execute. And they can be granted to a specific user (so if you are not that user those permissions do not apply to you) a group of users (if you’re not a member of that group those permissions do not apply to you) to all other users (so if the first two do not apply - these are then the permissions you’ll have on the respective file/directory) This is also the order in which linux checks the permissions....

August 6, 2019 · 4 min · schoeffm