How To Open A Directory with Root Privileges In Ubuntu 20.04 LTS?

How To Open A Directory with Root Privileges In Ubuntu 20.04 LTS?


This post was last updated on August 1st, 2020 at 09:07 pm

In Linux or Unix, you can perform almost any task by using a terminal. You need to have superuser privileges to perform tasks such as installation or removal of softwares, editing configuration files, etc.

Linux provides sudo command, to execute a command in privileged mode. Many users prefer to use GUI for some tasks, especially new users. Now suppose you want to move a file or folder that needs root permissions, how will you do that? By using the terminal you can do it easily.

If you are using GUI, some Debian based distributions such as Linux Mint; provide an option to open as root. In Ubuntu 20.04 and its some previous versions this option is disabled by default. In this article, we will discuss to enable this option in Ubuntu 20.04 LTS.


Nautilus is an official file manager for gnome desktops. It allows one to browse directories and open an application associated with them. It is also responsible for icon handling in gnome desktops. In Ubuntu, prior to version 17.10, you could use gksu or gksudo command to open the Nautilus file manager as root, then you can access a file or directory with the root permissions. To enable this option in later versions of Ubuntu including Ubuntu 20.04 or 18.04 you can follow the below steps.

Installing the nautilus admin tool

To enable open as administrator or root option, first, you need to install nautilus administrator tools in your system. To install this tool open terminal by pressing ctrl+alt+t and then execute the following commands in it-

First, update the apt package index –

sudo apt update

And then use –

sudo apt install nautilus-admin

Press y if ask for confirmation. Once it gets installed reload the file manager with the following command.

nautilus -q

Using nautilus admin tool

Now nautilus administrator tool is installed in your system. When you right-click on a folder you will see an option to open it as administrator which means you can open a file or folder as an administrator or with root privileges. Look at the image below –

Once you click on open as administrator option it will prompt you for authentication as given in the image below. Enter your password and click on authenticate. This will open the directory with root permissions.


Be careful while using nautilus as an administrator you may end up with editing a system file which can make your system unusable. So use this tool only when it is needed.

Ok, that’s all for now. If you want to say something on this topic, you can share your thoughts with us in the comments below.

Previous How To Install Apache Tomcat In Ubuntu 20.04 LTS?
Next How To List The All Enabled Repositories In Linux?

About author

You might also like

Linux Topics 0 Comments

Concepts Of Standard I/O, Pipe And Filters In Linux/Unix

This post was last updated on August 3rd, 2020 at 02:48 pmContents1 Standard streams1.1 Input redirection – 1.2 Output redirection – 1.3 Append the output to an existing file-2 Pipe

Linux Topics 0 Comments

How To Use Telnet In Linux/Unix?

This post was last updated on August 2nd, 2020 at 06:59 pmTelnet basically stands for “teletype network”. It is an old network protocol that works on the application layer of

Linux Topics 0 Comments

How To Upgrade To Ubuntu 20.04 LTS From Ubuntu 18.04 Or Ubuntu 19.10?

This post was last updated on August 1st, 2020 at 12:30 pmUbuntu comes in two releases the first one is LTS and the second is standard versions. LTS (Long Term


No Comments Yet!

You can be first to comment this post!

Leave a Reply