- currently logged in users
ls -la /home
- groups do not have any passwords anymore
- "/etc/groups" --> "x" in 2nd column
- "*" in "/etc/passwd" --> disabled login
- changing permissions
- symbolic mode
chmod g-w hello.txt
chmod a=,u=r hello.txt
- octal mode
- changing owner/group |
chown
;chgrp
sudo chown sally hello.txt
sudo chgrp sally hello.txt
sudo cat /etc/passwd
sudo -u sally cat /home/sally/sample.txt
- change user |
su
- for changing an other users password, sudo is needed
- if using elevated privileges, no password requirements are tested