Adding Admin priviledges to an account on Rocky Linux - 229300/SYS265-System-Admin.-Network-Services-II---Spring-2026 GitHub Wiki
Create a new user with my own password
- sudo useradd -m daniel && sudo passwd daniel
Add daniel to the wheel group (Rocky's "admin" group)
- sudo usermod -aG wheel daniel
Change my root account password from champlain password
- sudo passwd root
Change the system hostname to whatever is appropriate
- sudo hostnamectl set-hostname scottVM (or scottCA whichever I want)
- exit
To add my info type: sudo useradd daniel
- this makes my username = daniel
Type: passwd daniel
- and set info (In Phone Notes)
Next to gain admin privileges type: usermod -aG wheel daniel
Type exit
For Debian services like Ubuntu
Create a new user with my own password
- sudo useradd -m daniel && sudo passwd daniel
Add daniel to the sudo group (Debian "admin" group)
- sudo usermod -aG sudo daniel
Change my root account password from champlain password
- sudo passwd root
Change the system hostname to whatever is appropriate
- sudo hostnamectl set-hostname scottVM (or scottCA whichever I want)
- exit