Last active
September 13, 2019 13:15
-
-
Save almokhtarbr/96ac64d44ec1dbe0cd0e0c7efeacc8cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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