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

Re: permission of script linked to cron



On Mon, Oct 22, 2007 at 07:44:51AM -0400, Haines Brown wrote:
 
> a) Why does a script owned by root and run by root lack root's
> permission just because it is in user's directory?

Out of my league

> b) Why does the script snippet above not work?

I don't think you can use sudo that way. Instead you could edit sudoers 
file (with 'visudo' command):

username ALL=NOPASSWD: /path/to/script

> c) How can I do what this script snippet intends without exposing my
> plain text password?

I think the simplest way would be to put this in /etc/crontab or in a 
file in /etc/cron.d/

47 6 * * 7	root	/path/to/my/script

HTH,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature


Reply to: