Running apps as root?
Thomas Beckett
Thomas.Beckett at gmail.com
Wed Oct 20 11:26:37 UTC 2004
The following is a Nautilus script place it in .gnome/nautilus-scripts
folder in your home directory and make it executable.
-----------------------------------START OF
SCRIPT----------------------------------------------------------------
#!/bin/sh
#
#Nautilus script to run the selected file in nautilus as root (sudo)
#
foo=`gksudo -u root -k -m "enter your password for nautilus root
access" /bin/echo "got root?"`
sudo $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
-----------------------------------END OF
SCRIPT----------------------------------------------------------------
NOTE:
This is a "off the top of my head" hack together and is based on what
i can remember from a script I found on a site somewhere that opened a
root nautilus window. Basically I havent tested this (as im at work)
and its probably a security risk, but it might work. Ill try it myself
tonight...
Tom
More information about the ubuntu-users
mailing list