Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Create a GUI Finder with root access' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a GUI Finder with root access
Authored by: atonaldenim on Apr 23, '09 12:41:51PM

Perhaps a simpler way to go about this is to directly run the Finder executable using sudo.

At the terminal, type this command: sudo /System/Library/CoreServices/

sudo will prompt for your password, then will re-launch Finder with root privileges. Keep the Terminal window open while you do whatever Finder tasks you need to accomplish as root. When you want to end the root Finder session, click back on the Terminal window and type ctrl-c. This will kill the root Finder session, and your normal user's Finder should re-launch itself.

You can create a shell script to make this command easier to run in the future. Here's an very simple example bash script:

echo "*** You are running Finder as root! ***"
echo Type ctrl-c in the Terminal window to end session.
sudo /System/Library/CoreServices/

Save this script as a plain text file in the /usr/bin directory, its filename will be the command you use to run it, such as rootfinder. Give it the executable permission with the command sudo chmod a+x /usr/bin/rootfinder .

Now you can just start the Terminal and type rootfinder to run Finder as root. Again, leave the Terminal window open while you use Finder, and type ctrl-c in Terminal when you're ready to quit.

Works great in Leopard!

[ Reply to This | # ]