1

We have been cautioned not to use sudo nautilus to open Nautilus as root.

Have not been able to download gksu for 19.04.

Have also tried to install nautilus-admin to 19.04 without success.

Is it still possible to right click a file in Nautilus and select "open as administrator" in 19.04?

What to do?

pomsky
  • 67,112
  • 21
  • 233
  • 243
C.S.Cameron
  • 18,890
  • 10
  • 64
  • 105
  • 1
    have you also cautioned not to use `sudo -H nautilus`?? – PRATAP Sep 08 '19 at 17:56
  • Are you using 19.10 or 19.04? 19.10 is off-topic. – pomsky Sep 08 '19 at 18:08
  • 1
    I am using 19.10, will see what happens with 19.04. – C.S.Cameron Sep 08 '19 at 18:28
  • 1
    Possible duplicate of [How do I start Nautilus as root?](https://askubuntu.com/questions/156998/how-do-i-start-nautilus-as-root) – user68186 Sep 08 '19 at 21:45
  • @user68186: With 16.04 you could use gksu to open nautilus as root, With 18.04 gksu was discontinued and nautilus-admin took it's place, with 19.04 nautilus-admin is not working I think I stick with the answer I gave on that page for bootable USB drives, but want to make sure I am doing it right. – C.S.Cameron Sep 08 '19 at 22:53
  • @Eliah Kagan: Typo has been fixed, it is obviously about 19.04, what does it matter what I have tried? – C.S.Cameron Sep 09 '19 at 15:54

1 Answers1

4

You may use the GVfs admin backend by adding admin:// to the beginning of the full path to your preferred directory.

For example launch Nautilus and press Ctrl+L to enable the address-bar, and then enter for example admin:/// to open the / directory or admin:///usr/ to open the /usr/ directory.

Alternatively, launch Terminal and run

nautilus admin:///

to open the / directory or

nautilus admin:///usr/

to open the /usr/ directory etc.

pomsky
  • 67,112
  • 21
  • 233
  • 243
  • With 18.04 we could right click and select "open as administrator" in Nautilus, is this still possible? – C.S.Cameron Sep 08 '19 at 18:04
  • Not sure about that. This answer was written for [the initial version of the question](https://askubuntu.com/revisions/1171784/1). – pomsky Sep 08 '19 at 18:11
  • @C.S.Cameron You need to install the plug-in for "open as administrator". I'll reboot after this movie and try it out in 19.04 upgraded from 16.04 later to see if it carried over from upgrade. – WinEunuuchs2Unix Sep 08 '19 at 22:46
  • @WinEunuuchs2Unix: nautilus-admin works fine for me with 18.04 but not with 19.04? – C.S.Cameron Sep 08 '19 at 22:57
  • @pomsky: I think "open as administrator is a function of "nautilus-admin" and thus would be part of the original question. – C.S.Cameron Sep 09 '19 at 17:01
  • 3
    @C.S.Cameron I beg to differ, the [initial version](https://askubuntu.com/revisions/1171784/1) simply asked "*How to open nautilus as admin in Ubuntu 19.10*". It mentioned things like `sudo nautilus`, `gksu` along with `nautilus-admin` and did not *explicitly* asked for the "right click and *'open as administrator'*" feature. – pomsky Sep 09 '19 at 17:09
  • @pomsky: The question says/said "Have also tried to install nautilus-admin to 19.04 without success" and the title includes "How to open Nautilus as admin". nautilus-admin was also included as a Tag, I would expect nautilus-admin to be part of the question. Besides when I enter nautilus admin:/// in terminal I get warnings and errors. – C.S.Cameron Sep 09 '19 at 19:52
  • Nevermind, I'll disengage. I don't think anything fruitful is going to come out of this. – pomsky Sep 09 '19 at 20:02