[luau] sudo and cron

Randall Oshita roshita at hpu.edu
Wed Nov 19 13:15:02 PST 2003


>>First, you _can_ set the PATH in a crontab on vixie influenced
>>versions of cron. I regularly have MAILTO, PATH, and SHELL set.

Your "crontab" on budlight
        PATH = /usr/local/bin:/usr/local/sbin 
        unexpected symbol found
This entry has been ignored.

This is the cron output i got back through PINE.

>>Second, if the sudo binary is actually at /usr/local/sudo instead
>>of .../sbin, someone really screwed up installing sudo.

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.

>>Third, why are you even trying to use sudo? If you need to run
>>the script as root, add it to root's crontab. Unless you editted
>>sudoers to not prompt for passwords, the entry will get stuck
>>waiting for cron to enter in a password.

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.

Thanks for the time.

Randall

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4270 bytes
Desc: not available
URL: <http://lists.freesoftwarehawaii.org/pipermail/luau-freesoftwarehawaii.org/attachments/20031119/5a74b62f/attachment-0001.bin>


More information about the LUAU mailing list