Results 1 to 5 of 5

Thread: Hardy - Nautilus Script - Open as Root

  1. #1
    Join Date
    Sep 2005
    Beans
    33

    Hardy - Nautilus Script - Open as Root

    Under earlier versions of Ubuntu I have a script in "home/me/.gnome2/nautilus-scripts/Open as root" which allowed me to open files as root, requesting a password, and using gksudo. This no longer works under Hardy.

    the script contains:

    Code:
    for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
    	gksudo "gnome-open $uri" &
    done
    Any ideas what needs to be done to get a similar function under Hardy?

    Thanks

  2. #2
    Join Date
    Feb 2006
    Beans
    69
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Hardy - Nautilus Script - Open as Root

    If I need elevated privileges in nautilus I normally just open a terminal and type "sudo nautilus"

    You could put that in a script I guess

  3. #3
    Join Date
    Mar 2008
    Beans
    917

    Re: Hardy - Nautilus Script - Open as Root

    look for nautilus scripts, I found a package installed it and now I have like 60+ scripts in 7 or 8 categories that work off right click.

  4. #4
    Join Date
    Jan 2008
    Location
    Belgium
    Beans
    27
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Hardy - Nautilus Script - Open as Root

    Install nautilus-gksu from the repositories. However, this is currently affected by a bug which prevents it from appearing in the context menu. You'll have to copy or link the lib from /usr/lib/nautilus/extensions-1.0 to /usr/lib/nautilus/extensions-2.0 and then run a killall nautilus.

  5. #5
    Join Date
    Sep 2005
    Beans
    33

    Re: Hardy - Nautilus Script - Open as Root

    Thanks all.

    I like the suggestion from Coolit as a temporary workaround, but once the nautilus-gksu package is working, I will use it. Thanks

Tags for this Thread

Bookmarks

Posting Permissions

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