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

Re: Run script as often as possible



On Tue, Sep 28, 2004 at 04:49:49PM +0000, Adam Funk wrote:

> That runs the script as root, right?  If you wanted to run it with as
> another user, would you just stick a bit of sudo in that inittab
> entry?

Sure:

mysc:2345:respawn:su - someuser -c /path/to/myscript

-- 
Dave Carrigan
Seattle, WA, USA
dave@rudedog.org | http://www.rudedog.org/ | ICQ:161669680
UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL

Dave is currently listening to Hunters & Collectors - Everything's On Fire (Human Frailty)

Attachment: signature.asc
Description: Digital signature


Reply to: