đģ Admin
Same as Virtual Console
cat /etc/passwdDisplays all users
sudo useradd -G wheel,sudo newusersudo usermod -a -G existinggroup existingusersudo groupadd newgroupusermod -a -G newgroup existinguser
Unattended
echo "user:password" | chpasswdOnly as root
Normal
passwd userUser passwd
sudo passwdSuperuser passwd
RWX == Permission to Read, Write, & eXecute
Typical user RWX
chmod 700similar to chmod +x
Only owner has RW
chmod 644
Blank out permissions
chmod 000
RWX for EVERYONE
chmod 777RWX All Users & Groups (risky)
sudo systemctl edit getty@tty1or
sudo mkdir /etc/systemd/system/getty@tty1.service.dsudov /etc/systemd/system/getty@tty1.service.d/override.conf++ [Service] ++ ExecStart= ++ ExecStart=-/sbin/agetty (check dir) --autologin weyoun ($USER) --noclear %I $TERMReboot to check; or chroot to fix
vim ~/.bash_profileor
sudov /etc/profileTMOUT=300 #TMOUT=<seconds> readonly TMOUT export TMOUT
sudov /etc/default/grubMost distributions
-- GRUB_CMDLINE_LINUX="... splash quiet" ++ GRUB_CMDLINE_LINUX="..."… Typically required to boot system
CentOS
- -- GRUB_CMDLINE_LINUX="... rhgb quiet" #Redhat Graphical Boot - ++ GRUB_CMDLINE_LINUX="..."Most distributions
sudo update-grubor
sudo grub-mkconfig -o /boot/grub/grub.cfg
CentOS
sudo grub2-mkconfig -o /etc/grub2.cfgCentOS/RHEL
sudo package_manager_install gpmSelect text by holding down
LMBPaste with
RMBDisable/Enable with:
sudo /etc/init.d/gpm stop/start
cat /etc/*-release