#77 Create a non-root user
Using a non-root user is useful to ensure that some critical access won't ever be modified by some user.
Create a new user, named yasmin, by
useradd -m -G wheel yasmin
You may choose any name. The -m option creates a corresponding home directory. The -G option will add the new user to the wheel group which is the administration user group.
Set password for the newly created user by
passwd yasmin
Enable sudo privilege by modifying the /etc/sudoers file, whereby the following line gets uncommented:
# %wheel ALL=(ALL) ALL
It means all users in the wheel group can use sudo by providing their password.
Cites: