initiate program as root
I'm writing a script to connect to my wireless lan when I click on it. I've looked on google but can't seem to find what I'm looking for. I need to be root when these certain commands are given. My question is should I include the su command in my script? Or should I include the su command in my icon during the command call?
Code:
#! /bin/bash |
I'd set the permissions on that file to be only usable as root, it should then prompt you for a password.
|
Make another script with these lines:
Code:
#! /bin/bash Code:
#! /bin/bash Oh, you could also take a look at sudo ('man sudo' and 'man sudoers') to see how to enable certain user to execute certain commands. |
All times are GMT -5. The time now is 01:33 AM. |