Site Overlay

User management on Linux


To list the groups in the system:cat/etc/group 
Create a new user and add it.Useradd -m -g users -G audio,video,game -s /bin/bash-m : the "Home" directory for the user to be created. -g is the group in which to include the user to be created. -s specifies the SHELL path to use. Go to the command line to find out the Shell path: echo $SHELL /bin/bash is the chel path.
Reset a password to a new userScript:
passwd arifa
Arif Akyüz
Senior Information Technologies System and Network Specialist