class notes 5 30 - acavataio/ITC-136 GitHub Wiki
Security - spectrum of levels and toughness - mostly involving how people access data - data access for one is available for others - What is my attack vector and who is trying to hurt my security? (airgap - 0 connectivity)
-
check-in -checks about scripting feelings -how to protect your scripts
-
two kinds of scripts: -take user input - (usernames, passwords, email addy, folder name) -do work within environment once run - (needs no info from user)
-
Conditionals:
-book covers "if" statements if [test]; than [command] else [command] fi
-elif (else if)
if [test]; than
elif [test2]; than [command]
elif [test3]; than [command]
else [command]
fi
-
"for" loop -for (x) in (x); do (x)
for (user) in $(cat /etc/passwd/); do usermod -l $user done
for log in $(ls /var/msg); mv $log $log.bak done
-
Working with VM - -copying code to github