Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, Does anyone know if it's possible to set-up Nautilus, konqueror, etc. file managers to be able to right-click on a file, and open it as a super-user? It would ...
  1. #1
    Linux Newbie hughitt1's Avatar
    Join Date
    Oct 2005
    Location
    Baltimore, MD USA
    Posts
    167

    Right-click to "run as super-user" in nautilus?

    Hi,

    Does anyone know if it's possible to set-up Nautilus, konqueror, etc. file managers to be able to right-click on a file, and open it as a super-user? It would be nice if i'm browsing my system in nautilus and see a file that i want to edit which belongs to root, to just be able to type in my password and open it. Right now i mostly just use the shell whenever i want to work with files as a sudo-er.

    Thanks!

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    i dont think its possible but you can invoke nautilus or konqueror with 'root' privileges. press Alt+F2 and type, in KDE
    Code:
    kdesu konqueror
    and in GNOME
    Code:
    gksu nautilus
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    For Nautilus, you can install the plugin called nautilus-gksu, which will allow you to do just that.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by antidrugue
    For Nautilus, you can install the plugin called nautilus-gksu, which will allow you to do just that.
    wow ! didn't know that. thanx !
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    You can do the same with the thunar file manager too.

    Just create a custom action that uses the command:
    Code:
    gksudo thunar %d
    that is only valid with directories.

    So in resume, the custom thunar action would contain this:

    Name: Open with Root privileges
    Command: gksudo thunar %d
    File pattern: *
    Appears if selection contains: Directories
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...