How to add user in Ubuntu and assign root rights?

0
64
How to add user in Ubuntu and assign root rights ?

Let’s start learning how to add user in Ubuntu and assign root rights to it. When you install any OS on your server, you will be assigned root access to that server. Root will have privileges to execute any command which can cause severe issues with your server in the worst case. Sometimes a command that has been executed accidentally can disrupt the working of the server. To avoid this, first of all, add a user account to limit access of commands. If you want to allow the user to execute administrator commands, you must add it to ‘sudo’ group. You can execute any command with root rights by using ‘sudo’ keyword at the start of that command e.g. sudo apt-get update

 

adduser username
adduser above_username sudo

The first command will add a new user to users’ group, the second command will add the created user to ‘sudo’ users’ group.

Previous articleJava Virtual Machine ( JVM ) – How does JVM work?
Next articleAdd a user in Fedora / CentOS and assign root rights?
I'm a Software Engineer by profession. I had been certified as Cloud Computing Specialist by Alibaba Cloud. I started my career by working on freelance projects related to Facebook App Development, Mobile App development, Web development, and Software development. I voluntarily edited Facebook Map and Google Maps. During my blogging career, I experienced Affiliate Marketing, Google AdWords, Facebook Ads, Facebook Audience Network, Google Adsense and Media.net by Microsoft. I am also the founder of cloud-based Centralized Queue Management System (CQMS) which has been deployed in COMSATS University's student service center and admission cell for managing their queues. CQMS has also been awarded 3rd best project in DICE -IET 2017 (a national level exhibition and competition). Besides, I am a technical author at Alibaba Cloud. I had written many tutorials on Alibaba Cloud Focus. Moreover, I have published my book on Amazon. Currently, I am writing my next book that is expected to be published soon.

LEAVE A REPLY

Please enter your comment!
Please enter your name here