How to open admin and folder permissions in Nautilus

In Nautilus on Ubuntu, users can view all files and folders on their system. Sometimes you may want to edit the basic file configuration like when installing for other programs. But there are some system files and folders that you cannot open and edit from Nautilus unless you are open as Administrator.

In Nautilus on Ubuntu, users can view all files and folders on their system. Sometimes you may want to edit the basic file configuration like when installing for other programs. But there are some system files and folders that you cannot open and edit from Nautilus unless you are open as Administrator.

Before Ubuntu 17.10, you can use the gksu or gksudo command to open Nautilus with Admin rights and then open the files and folders as an administrator from within that Nautilus window. However, these two commands have been removed from Ubuntu since version 17.10. So how do you open files and folders as Administrators in Ubuntu 17.10 and Ubuntu 18.04?

Today, we will show you how to add two options to the right-click menu, allowing you to open the folder and edit the file as an administrator.

Note: The instructions in this article apply only to Ubuntu operating system versions 17.10 and 18.04.

Add Nautilus Admin to the Nautilus Right-Click menu

To add options to open files and folders with Administrator rights on the right-click menu, we will have to install Nautilus Admin.

Press Ctrl + Alt + T to open the Terminal window. Then, type the following command and press Enter .

 sudo apt-get install nautilus-admin 

Picture 1 of How to open admin and folder permissions in Nautilus

Enter the password when the reminder message appears.

When asked if you want to continue, enter ' y ' (lowercase or uppercase) and press Enter .

Picture 2 of How to open admin and folder permissions in Nautilus

When the installation process finishes, you must restart Nautilus. Enter the following command and press Enter .

 nautilus -q 

To close the Terminal window, type ' exit ' at the prompt and press Enter or press the X button in the upper right corner of the window.

Picture 3 of How to open admin and folder permissions in Nautilus

How to open files and folders as an administrator

To open a folder in Nautilus with administrative rights, right-click on the folder and select Open as Administrator .

A new Nautilus window opens with administrator rights and the folder you selected will open.

Picture 4 of How to open admin and folder permissions in Nautilus

To edit a file that requires administrator privileges from within Nautilus, right-click on the file and select Edit as Administrator .

For example, this option is often used to open text files in gedit with administrator privileges.

Picture 5 of How to open admin and folder permissions in Nautilus

Note to use administrator privileges very carefully

Do you run Nautilus with administrative rights and open files and folders that need administrative rights? If you have done this, be very careful. Do not edit the file system if you do not have to do it. This may result in system shutdown.

Share your experiences and thoughts with us on this issue!

See more:

  1. Some features in Nautilus may be unknown
  2. Tips and tricks after installing Ubuntu
  3. Enable Root account in Ubuntu
Update 26 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile