class notes 5 11 - acavataio/ITC-136 GitHub Wiki

in sudoers file - have ALL

sudo su (become root) now you have perms to everything
man prompt changes
many things changes
system tracks actions as a different uid - the root uid of 0.
cat /etc/passwd will list all accounts with properties and you can see what the uid is.

The lab:

if you want a file auto copied to home directory where would you put it?

-become root
-cd /etc/skel
-ls -la
put the file in there to copy to home directory of every new user logging in.

if you want a script run on each user login, where would you put it?
-cd /etc/skel

  • vim .profile
    add
  • cat (filename)