Linux Tutorials

How to add user in Ubuntu and assign root rights?

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.

Arslan ud Din Shafiq

Alibaba Cloud MVP, Alibaba Cloud Technical Author, Dzone MVB, Software Engineer, Software Developer, Software Designer, Web Engineer, Web Developer, Web Designer, Database Designer, Database Developer, Cloud Computing Specialist, Linux Expert, Servers, 3D Modeling, Blogger, Facebook Map Editor, Google Map Editor

Recent Posts

I have 20 years of experience in computer security advancement. What I can recommend to regular PC users

If you are living in a digital world you must know how to protect your…

4 years ago

Software Development Life Cycle Model (SDLC)

Software Development Life Cycle Model, also known as SDLC or Software Development Process, is base…

4 years ago

How to Install Go Lang on CentOS 8

Go, often referred to as golang is a modern open-source programming language created by Google…

4 years ago

SE Ranking in [2020]. What is SEO in marketing?

Torque published an article on October 18, 2016, about WordPress statistics. According to this article,…

4 years ago

PostgreSQL Version via Command Line & SQL Shell

PostgreSQL, often known simply as Postgres, is an open-source general-purpose object-relational database management system. In…

4 years ago

Google SEO: 15 Best ways about how can I do SEO for Free?

SEO is free as well as paid. To achieve SE ranking, money is not enough.…

5 years ago