> On Tuesday, September 27, 2005 @ 15:45, Ryan Byrd <[EMAIL PROTECTED]> wrote:
>
> I had to do this to get my x10 flipit script to run. the solution is to
> use  sudo. basically, you run visudo and specify which users can run which
> commands as root.

Thank you! I know that I will certainly keep this technique in mind for
future web-development projects.  The ability to grant root access in a very
narrow and specific scope to a normal user is a potential life saver.

Do any of you know if this command is available in any of the BSD
environments?

Thanks!

Best Regards,

Jay Taylor
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Ryan Byrd
Sent: Tuesday, September 27, 2005 3:45 PM
To: [email protected]
Subject: Re: [uug] Web user running script as root

I had to do this to get my x10 flipit script to run. the solution is to
use  sudo. basically, you run visudo and specify which users can run which
commands as root.

mrb

> On Sep 27, 2005, at 2:33 PM, Mark Gardner wrote:
>
>
>> I'm trying to put together a simple little webpage.  When I click on a
>> link I would like a script to start.   not too hard with exec
>> command.... however I need the script to run with root privlages.
>>
>
> You could run your web server as root..... just kidding. :o)
>
> One thing I've done for that before is create a cron job (running as
> root) that watches a certain directory for changes. When a file
> appears in that directory (a script), the cron job runs the script   and
> deletes the file.
>
> -- John
>
>
> --------------------
> BYU Unix Users Group
> http://uug.byu.edu/
>
> The opinions expressed in this message are the responsibility of their
> author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG.
>  ___________________________________________________________________
> List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list




--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list


--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to