cat /etc/group -> list groups
sudo:x:27:kangchan
sudo : group name
x : it means that the password has been encrypted
27 : group id
kangchan : list of users in the group
changing password
passwd {username}
expire password so the user must reset the password
sudo passwd -e {username}
set default password for user and force them change the password themselves
so only the user knows his or her password.
ls -l ->
r : readable
w : writable
x : executable
u : owner
g : group
o : other users
chmod u+x {filename} -> give x permission to the owner of the file
chmod u-x {filename} -> remove x permission of the owner of the file
chown {username} {filename} -> change the owner of the file
chgrp {groupname} {filename} -> change the group that the file belongs to
SetUID (s) -> allow a file to be run as the owner of the file
SetGID -> allow a file to be run as the group of the file
Sticky Bit (t) -> all permissions but can not delete
only the root can do it