How to create a new normal user with sudo permission?
This procedure can be used in any Linux distro to add a normal user. That includes ubuntu, Linux mint, or even Centos
# -m creates a home directory for the user.useradd -m username
# for more config option while adding user read
man useradd
## :)
Set password using passwd in order to login
passwd username
Add user to sudores so that we can use “sudo” to do administrative actions.
usermod -a -G sudo username
The option -a means to add and ‘-G sudo’ means to add the user to the sudo group. If you want to know more about the usermod command, issue man usermod command to know more about usermod
Brak komentarzy:
Prześlij komentarz
thanks