No administrator rights on Ubuntu 20.04

Please forgive me but I am new to Unbuntu. I installed version 20.04 on a VM on my Windows 10 laptop. I am the only user but I am not administrator.

How can I resolve this to make myself an administrator?

1

2 Answers

If you want to elevate your privileges, you'll need the sudo command. You could alternatively log in as the root user, which I would highly not recommend. You could destroy your operating system by accident, so just stick with the first method. Try if it works by updating your packages:

sudo apt update

If you try this command without sudo, you should get an error message :)

Since the exact problem wasn't exactly specified, here are some solutions on root and administrator permissions.

Sudo

When running terminal commands but need admin permissions, use sudo. Example:

sudo apt update

Sudo Su

You can also get permissions from sudo su. This will make your terminal window completely root.

WARNING: It is dangerous to use sudo su unless you know exactly what you are doing. If you accidentally do something wrong, you could hurt your system. Also, if you install some apps, those apps might only be available to root if you used sudo su.

Administrator in File Manager

If you're using the nautilus file manager (you probably are, since it's the default file manager when instlaling Ubuntu), you can use the plugin nautilus-admin.

You can install it with sudo apt install nautilus-admin, which lets you right-click in the file manager and select "open as administrator."

Source:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like