Open Files and Folders as Administrator in Ubuntu

Open Files and Folders as Administrator in Ubuntu | Prior to Ubuntu 17.10 version, gksu or gksudo command ($ gksu nautilus /etc/apt/) was there to open the file or folders as an administrator, but now these commands are removed from the Ubuntu. Now, how to open files and folders as an administrator in Ubuntu? For this, we should add nautilus-admin to the Nautilus. It is a very easy process and only requires two steps:- install nautilus-admin and restart the file manager.

In Ubuntu Nautilus is the default file manager. GNOME Files, formerly and internally known as Nautilus, is the official file manager for the GNOME desktop. Nautilus was originally developed by Eazel with many luminaries from the tech world including Andy Hertzfeld (Apple), chief architect for Nautilus.

Step-1) Install nautilus-admin

To add nautilus-admin to the Nautilus open terminal (Alt + Ctrl + T) and install nautilus-admin.

$ sudo apt-get install nautilus-admin

Enter the password to download, and to continue press ‘y’ or ‘Y’

Installing nautilus-admin in ubuntu to open a folder or file as an administrator

Step-2) Restart Nautilus File Manager

Once installation is finished then restart the Nautilus. In order to restart the Nautilus use the following command,

$ nautilus -q

Now, Open the Nautilus file manager and select any file or folder. You will find the “Open in Administrator” option for the folder and “Edit in Administrator” for the file. And you can open the file or folder in the administrator mode, in Ubuntu Operating System.

Edit or open as an administrator in Ubuntu

Be careful, while running Nautilus to open a folder or edit a file as administrator. Don’t edit system files if you can avoid it. You could end up with an unusable system.

Also learn:-

If you enjoyed this post, share it with your friends. Do you want to share more information about the topic discussed above or do you find anything incorrect? Let us know in the comments. Thank you!

Leave a Comment

Your email address will not be published. Required fields are marked *