• Home
  • Projects
Koz.TV
  • Home
  • Projects

Create admin user in ubuntu linux

1. Login as super user:

sudo su

2. Run the following command:

adduser username

Don’t forget to replace username with the name of user that you want to create.

3. Add the user to the sudo group:

usermod -aG sudo username

4. Switch to the new user:

su username

5. Check that new user has admin rights:

sudo ls -la /root
Share:
Mikhail Kozlov Administrator
December 5, 2017
General, Server configuration
Older Post Reset password and give admin rights to redmine account
Newer Post Allow ssh password authentication on remote server
  • Telegram
  • Facebook
  • LinkedIn
  • Instagram

© 2014...2022
[email protected]