Skip to content

Instantly share code, notes, and snippets.

@almokhtarbr
Last active September 13, 2019 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almokhtarbr/96ac64d44ec1dbe0cd0e0c7efeacc8cf to your computer and use it in GitHub Desktop.
Save almokhtarbr/96ac64d44ec1dbe0cd0e0c7efeacc8cf to your computer and use it in GitHub Desktop.
adduser moktar
passwd moktar
# Use the usermod command to add the user to the wheel group.
usermod -aG wheel moktar
# Use the su command to switch to the new user account.
su - moktar
#As the new user, verify that you can use sudo by prepending “sudo” to the command that you want to run with superuser privileges
sudo ls -la /root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment