RHCSA RHEL 8 - Log in and switch users in multiuser targets

Опубликовано: 28 Октябрь 2024
на канале: Computers, Security & Gadgets
9,761
170

Buy CSG Merchandise:
http://tee.pub/lic/csg
Patreon page:   / computers_servers  

This video is based on RHEL 8.

Video to cover the section 'Boot, reboot, and shut down a system normally' for the RHCSA (Red Hat Certified System Administrator).

More information on the required learning: https://www.redhat.com/en/services/tr...

Commands used in this video:

Get current run level:
runlevel
or
systemctl get-default

Overview of 6 runlevels.
runlevel 0 = Halt or shutdown system.
runlevel 1 = Single user mode.
runlevel 2 = Multiuser mode, without networking.
runlevel 3 = Full multiuser mode.
runlevel 4 = Currently unused.
runlevel 5 = X11 Display
runlevel 6 = Reboot system.

Run levels of 2 and above are multi-user.

Create a new user:
useradd user1

Switching user accounts:

Sign into user1 account:
su user1

Sign into user1 and gets user1's environment variables:
su - user1

Change to root:
su -

Show current user:
whoami

Password policy of an account:
chage -l user1

Update account password policy:
chage user1

Run a command as root:
sudo command