Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

How to create or add a user on linux

#To create a user
sudo useradd -m username

#to set user password
sudo passwd username

# to add a user to sudoers [FOR ADMIN ACCESS]
usermod -aG sudo username
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #How #create #add #user #linux
ADD COMMENT
Topic
Name
3+3 =