adduser username
usermod -aG groupname username
orgpasswd -a user_name group_name
usermod -aG sudo username
- visudo
username ALL=(ALL) NOPASSWD:ALL
- Remove a user from a group
deluser user_name group_name
orgpasswd -d user_name group_name
passwd username
usermod -aG wheel username
- Adding user to group wheel
gpasswd -a username wheel
- Check User wheel
sudo lid -g wheel
passwd root
- Edit the file
/etc/gdm3/custom.conf
and put under[daemon]
sectionAllowRoot=true
- Commented the following line from the file
/etc/pam.d/gdm-password
auth required pam_succeed_if.so user != root quiet_success
groupadd X
usermod -d /home/X -m -g X -l X Y