Security Flashcards
passwd
Change current user’s password
sudo -s
Execute your current shell as root (Non-login shell)
What is a login shell?
sudo -i
Switch to the root (superuser) account with root’s environment (Login shell)
sudo -l
List sudo privileges for the current user
visudo
Edit the sudoers config file
(“vi” is for…?)
getenforce
Display the current SELinux mode
setstatus
Display SELinux details such as the current SELinux mode, the configured mode, and the loaded policy
setenforce 0
Change the current SELinux mode to Permissive (Does not survive reboot)
setenforce 1
Change the current SELinux mode to enforcing (Does not survive reboot)
SELINUX=enforcing
Set the SELinux mode to enforcing on boot by using this setting in the “/etc/selinux/config” file
SELINUX=permisive
Set the SELinux mode to permissive on boot by using this setting in the /etc/selinux/config file
SELINUX=disabled
Set the SELinux mode to disabled on boot by using this setting in the /etc/selinux/config file