Adding a User in wheel
group
# useradd -m -G wheel -s /bin/bash chahatdeep # passwd chahatdeep Enter new UNIX password: Retype new UNIX password: # gpasswd -a chahatdeep wheel
Open visudo
and the following lines:
chahatdeep ALL=(ALL:ALL) ALL
Give yourself the permissions of the /home
directory:
# chown -R chahatdeep:chahatdeep /home
Change the local host name from localhost
:
hostnamectl set-hostname archahat
The name of the host is save in /etc/hostname
.