Create shortcut to open Nautilus as root in Ubuntu

Would you like to have a shortcut in the application menu of Nautilus with root privileges for when you need it so you don't have to open the terminal and type sudo nautilus, or Alt + F2 gksudo nautilus (Strenuous task how few 😛)?

En Lifehacker,via ghacks, they explain it to us, the task is simple, we must type in a terminal the following

sudo gedit /usr/share/applications/Nautilus-root.desktop

Inside the file paste the following text

[Desktop Entry] Name = File Browser (Root) Comment = Browse the filesystem with the file manager Exec = gksudo “nautilus –browser% U” Icon = file-manager Terminal = false Type = Application Categories = Application; System;

Once the file is saved you will find the shortcut in Apps> System Tools

Create shortcut to open Nautilus as root in Ubuntu

You will notice that the text to paste differs in the two sources mentioned, particularly for me it has worked with the text of hacks, and it is the one I put in this post, so that if it does not work with one, try the other.

I personally prefer the keybindings Alt + F2 and type gksudo nautillus It is more I think that it takes less time to do that than to go to the shortcut created, but it is always good to have variants for all tastes 😉


Leave a Comment

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

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Enrique said

    You can also create a launcher either in the panel, on the desktop and / or in the programs menu by putting in Command gksudo nautilus /

  2.   Hector said

    Thanks for the excellent contribution.