Re: permission of script linked to cron

2007-10-22 Thread Raj Kiran Grandhi
Haines Brown wrote: Raj Kiran Grandhi <[EMAIL PROTECTED]> writes: Haines Brown wrote: I have a script, ~/scripts/backup, owned by root, that mounts an external UPS drive, creates a directory based on date, and backs up my hard disk with the exception of a few directories. I created a symlink t

Re: permission of script linked to cron

2007-10-22 Thread Haines Brown
Raj Kiran Grandhi <[EMAIL PROTECTED]> writes: > Haines Brown wrote: > > I have a script, ~/scripts/backup, owned by root, that mounts an > > external UPS drive, creates a directory based on date, and backs up my > > hard disk with the exception of a few directories. > > I created a symlink to /etc

Re: permission of script linked to cron

2007-10-22 Thread Raj Kiran Grandhi
Haines Brown wrote: I have a script, ~/scripts/backup, owned by root, that mounts an external UPS drive, creates a directory based on date, and backs up my hard disk with the exception of a few directories. I created a symlink to /etc/cron.weekly to automate the job, but because the script is lo

Re: permission of script linked to cron

2007-10-22 Thread Andrei Popescu
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