need sudo

Sharing and discussing custom actions for LaunchBar
Post Reply
comety
Posts: 18
Joined: Tue Aug 19, 2014 10:47 pm

need sudo

Post by comety » Thu Oct 16, 2014 11:25 pm

To make this simple:

I put this into a file
#!/bin/sh
sudo -s


Save the file, and put it in the Actions folder in the App Support folder of the Library folder.

I can run it, but nothing ever asks me to enter in my password. The only think I can think of is to pop an applescript alert, but then how do you attach that to the script?

Any docs on dealing with root? I am surprised Time machine works, I used to have
#!/bin/bash
sudo /usr/bin/tmutil startbackup

And it worked, oddly enough, as I guess tmutil does not need root to work, so it error'd somewhere, but still went about backing up.

comety
Posts: 18
Joined: Tue Aug 19, 2014 10:47 pm

Re: need sudo

Post by comety » Sun Nov 09, 2014 11:16 am

Bumpity bump

Post Reply