In this video we will create a user for our Linux system and then grant it the sudo privilege. The commands we will use in this tutorial go following.
Create a new user
sudo adduser USERNAME
Note: Replace USERNAME with the username of your choice and after pressing enter, give it the user password.
Make user sudoer
usermod -aG sudo USERNAME
Method 2 of making a user sudoer
visudo
Add the following line to the end of file:
USERNAME ALL=(ALL:ALL) ALL
Ctrl+X
Y
Log into the user account
su - USERNAME
Test privileges
whoami
sudo whoami
Logout from an account
logout
All Open Source!
Arashtad provides high quality tutorials, eBooks, articles and documents, design and development services, over 400 free online tools, frameworks, CMS, WordPress plugins, Joomla extensions, and other products.
More Courses ▶ https://tuts.arashtad.com/
Business Inquiries ▶ https://arashtad.com/business-inquiries/
Affiliate Programs ▶ https://arashtad.com/affiliate-programs/
eBooks ▶ https://press.arashtad.com/
Our Products ▶ https://market.arashtad.com/
Our Services ▶ https://arashtad.com/services/
Our Portfolio ▶ https://demo.arashtad.com/
Free Online Tools ▶ https://tools.arashtad.com/
Our Blog ▶ https://blog.arashtad.com/
Documents ▶ https://doc.arashtad.com/
Licensing ▶ https://arashtad.com/licensing/
About us ▶ https://arashtad.com/about/
Join Arashtad Network ▶ https://i.arashtad.com/
Our Social Profiles ▶ https://arashtad.com/arashtad-social-...
Vimeo ▶ https://vimeo.com/arashtad
Udemy ▶ https://www.udemy.com/user/arashtad
GitHub ▶ https://github.com/arashtad
Linkedin ▶ / arashtad
Twitter ▶ / arashtad