LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   scripts (https://www.linuxquestions.org/questions/linux-newbie-8/scripts-239410/)

FuzzBall 10-06-2004 10:30 AM

scripts
 
I want to make a script that can run a program with root's permissions

I know i can acomplish this with:

Burner.sh
Code:

#!/bin/bash
su - -c"COMMAND_HERE"

So, how could i pass the password to the script when it asks for the password?

Oliv' 10-06-2004 10:50 AM

Hi,

Code:

xterm -e su - -c"COMMAND_HERE"
Oliv'

FuzzBall 10-06-2004 10:53 AM

That's the problem though, i dont want to have to enter the password. Is there anyway around that?

Linux~Powered 10-06-2004 10:14 PM

There's a program called Sudo that gives special users root privileges if that's what you're looking for.

http://www.courtesan.com/sudo/download.html#ftp


All times are GMT -5. The time now is 03:38 AM.