Security Flashcards
passwd
Change the current user’s password.
sudo -i
Switch to the root account with root’s
environment. (Login shell.)
sudo -s
Execute your current shell as root.
(Non-login shell.)
sudo -l
List sudo privileges for the current user
visudo
Edit the sudoers configuration file.
getenforce
Display the current SELinux mode
sestatus
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 a reboot.)
setenforce 1
Change the current SELinux mode to
Enforcing. (Does not survive a reboot.)
SELINUX=enforcing
Set the SELinux mode to enforcing on boot
by using this setting in the
/etc/selinux/config file.
SELINUX=permissive
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.