[luau] sudo and cron

Vince Hoang luau at ml.altern8.net
Wed Nov 19 14:14:01 PST 2003


On Wed, Nov 19, 2003 at 01:18:35PM -1000, Randall Oshita wrote:
> wait i though visudo is in /usr/local/sbin and sudo resides
> in /usr/local/bin thats why i nedded to make sure thses two
> paths are in my user's path (.profile) which have been added
> and works flawlessly thrugh cmd line.

I meant you left out [s]bin when fully qualifying the path:
  30 1 * * * * /usr/local/sudo "/export/home/x/restart_script"

You had /usr/local/sudo instead of /usr/local/bin/sudo.

> I need to run sudo because i have an app that needs to be
> restarted everyday. there is a shutdown and start script that
> came with the app. this app uses a web server LDAP etc in which
> it prompts the user for a password to start these services.
> all users use sh except this user which starts and shutdowns
> the service. It needs to run under BASH, as these cmds ar BASH
> specific.

Gross! Sudo should work here, but I prefer su. It should work the
same though.

-Vince



More information about the LUAU mailing list