File manager

How To Edit Files As Root In Ubuntu Using GUI File Manager

In this article, we will show you how Edit Files as Root in Ubuntu Using GUI File Manager. A graphical user interface (GUI) is a system of interactive visual components for computer software. A graphical interface displays objects that convey information and represent actions that can be performed by the user. Objects change color, size, or visibility when the user interacts with them.

Ubuntu Desktop is a Linux distribution developed by Canonical, and it is one of the most popular distributions, thanks to its ease of use. It is also one of the best choices for people who are new to Linux. Below we have mentioned the steps to edit files as root in Ubuntu using GUI file manager.

Edit Files as Root in Ubuntu Using GUI File Manager

Steps to edit files as root or sudo user in Ubuntu Nautilus File Manager

The tutorial is not limited to Ubuntu only. Any other Ubuntu or Debian based Linux that uses Gnome/Nautilus as its default user interface can follow the commands described in this tutorial.

Open the command terminal

We understand that you are wondering why we are talking about the Graphical file manager here and why we need to use the command terminal. This is because we need to install a function required by Nautilus. In addition, updating the system via the command line is an easy way. To open the terminal, the user can either use the key combination Ctrl+Alt+T or search for it through the app launcher.

Update Ubuntu Linux

It is recommended to run the system update command before installing any software. Yes, we need to install an extension for our Nautilus File Manager to get a feature that allows us to edit files as root. Therefore, let’s start by updating the system.

sudo apt update and sudo apt upgrade

Install the Nautilus Admin extension

Windows 11 Windows Defender not working or Windows 11 security not working? After reading this article, you should know how to get rid of this problem. Just try the solutions mentioned above to fix your problem. In addition, you should take certain steps to ensure your PC security.

sudo apt install nautilus-admin

Restart your Linux system

Once you have installed the administration function for your Nautilus File Managerrestart your system to integrate it properly.

sudo restart

Edit files as root via Nautilus GUI File Manager

Open your File manager and navigate to a file that can only be edited with root user rights. After this right click on this file and in the context menu this time you will see an additional option “Edit as administrator”.

When you click on the option, the system will ask for your sudo user password, provide it.

Remove Edit Files as Root Feature on Ubuntu

Well, in case you don’t want this admin feature enabled on your Ubuntu, we can remove the Admin extension from our Nautilus File Manager using the command.

sudo apt remove -purge nautilus-admin

Last words

We hope you like this article on How to Edit Files as Root in Ubuntu Using GUI File Manager. As an operating system created to get newbies on the Linux bandwagon, Ubuntu does a great job of achieving the same goal. Although it looks very different from Windows and macOS, it has a shallow learning curve. Ubuntu uses GNOME, one of the most popular desktop environments (DE) in the Linux world.

Hope you understand this article, How To Edit Files As Root In Ubuntu Using GUI File Manager.