Here is the video version, if you prefer it:
We talked about file modes and permissions. Let’s review that on an example:
-rw-r--r--
First character (looking from left to right) tells us if we are talking about a file or a directory or something else, the next three characters tell us user permissions, the next three tell us group permissions and the next three tell us world permissions.
Then we talked about the following:
chmodis used to change file permissionschownis used to change file ownerumaskdefines the default permissions (keep in mind the octal to binary conversion we talked about and how it relates to permissions)passwdis used to change users passwordadduseris used to add usersuserdelcommand is used to delete users/etc/passwdkeeps users and their IDs, while/etc/sudoerskeeps the list of users who can execute thesudocommand
Hope you refreshed your memory!
Leave a Reply