Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Launch Shortcut as Sudo



On 03/12/2013 02:51 PM, Jerry Feldman wrote:
> On 03/12/2013 02:49 PM, Jerry Feldman wrote:
>> On 03/12/2013 01:27 PM, Chris O'Connell wrote:
>>> Hi All,
>>> I've created a nice little script on my BackTrack laptop.  I put an 
>>> icon to
>>> launch the script on the desktop, but I'm having two odd problems:
>>> 1. when I double click the icon the script I'm asked if I want to 
>>> "Run in
>>> Terminal" or just run.  Either one I pick the script never appears 
>>> on the
>>> screen.
>>> 2. Second, I need to ensure the script runs as the super user.
>> I really should know how to do this after using Linux for so long, 
>> but it's one of those things that's just proving frustrating.
>> Generally scripts need to run in terminal.
>> Sudo requires an active tty port. It has security measures so that it 
>> can't run inside of a script.
>> You have to comment out this in /etc/sudoers:
>> Defaults    requiretty
>>
> You can also run the shell
>
Lost the last half of my message:
/bin/bash -c <command>

-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix
PGP key id:3BC1EB90
PGP Key fingerprint: 49E2 C52A FC5A A31F 8D66  C0AF 7CEA 30FC 3BC1 EB90




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org