How to operate as root in GUI?

753

Solution 1

Press AltF2 to run a command and then enter gksu nautilus (using gksu is the recommended way to open GUI's with root permissions). There's a nautilus script that allows you to open a directory as root, look for nautilus-gksu on your repositories.

Solution 2

News from 2018: https://itsfoss.com/gksu-replacement-ubuntu/

Brief: gksu is deprecated. It is removed from Debian, Ubuntu 18.04 and other newer Linux distribution version. You can achieve the gksu functionality with gvfs admin backend. Here’s how to do that.

Share:
753

Related videos on Youtube

Brian D
Author by

Brian D

Updated on September 18, 2022

Comments

  • Brian D
    Brian D over 1 year

    I have a problem with my app here. My configuration is as such I can upload a new release and symbolically link it for production -- however, this means every time I upload a new release, all of the photos that were uploaded in any parts of my entire project are wrapped into the old release and disappear.

    How can I save these files to a static file location which does not get wrapped in the release? Thanks in advance.

    • Renan
      Renan over 11 years
      Are you using GNOME 2 or 3?
    • Bananguin
      Bananguin over 11 years
      Well, 1. if the directories aren't readable for you there's usually a good reason for it and 2. my Nautilus version 3.4.2 has exactly such an option as you describe. What system are you on precicely? I suppose you could always start nautilus as user root and use that to browse your fs. However, this may also not be what you want.
    • Benny Abramovici
      Benny Abramovici over 11 years
      @user1129682 Launching nautilus as root is a good way. I tried 'su', 'nautilus' and it works. You should make that an answer.
  • Brian D
    Brian D over 13 years
    Of course. MEDIA_ROOT = '/home/my_app/production/static_files' is what I currently have, which lives in the same dir as the source code -- thanks :)
  • carandraug
    carandraug almost 6 years
    @proneon running such programs with sudo alone is asking for trouble. There's plenty of pages on the internet about why, and that's why programs like gksu exist.
  • dan carter
    dan carter over 5 years
    How do we do this in ubuntu 18.04, there is no gksu package