How To Give Ubuntu User Root Access?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two ways to give a user root access in Ubuntu.
1. Temporarily:
The user can temporarily gain root access by running the command ‘sudo -i’. This will ask for the user’s password and will grant root access until the user logs out of the session.
2. Permanently:
The user can be permanently granted root access by running the command ‘sudo usermod -aG sudo username’, where ‘username’ is the username of the user to be granted root access. This will add the user to the sudo group, which will give them permanent root access.