Re: Cron as Root and .netrc File

From: Holger.VanKoll@SWISSCOM.COM
Date: Fri Jan 30 2004 - 09:47:21 EST


why not user "su - username" in roots crontab?
I also dont allow users to user cron - only root. and thats how I have
certain crontab-commands executed as a normal user

-----Original Message-----
From: Mark Monroe [mailto:mark.monroe@FORMSANDSUPPLY.COM]
Sent: Friday, January 30, 2004 3:36 PM
To: aix-l@Princeton.EDU
Subject: Re: Cron as Root and .netrc File

I need to automatically FTP a couple of files to a machine each day and
since I already have cron running a couple of things it just seem to
make sense to use that root cron and whatnot.

I dont have any cron processes set up for any users -- only root -- but
I suppose I could set up a cron process to run via a user. It just seem
unnecessary. However if the root cron will not read the .netrc file I
may have no other choice.

Would anyone eles like to offer some input?

Thanks to all for their help,

Mark

-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
John Jolet
Sent: Friday, January 30, 2004 9:21 AM
To: aix-l@Princeton.EDU
Subject: Re: Cron as Root and .netrc File

i think it's exceedingly dangerous to make a .netrc for root. actually,
root
will ignore the .netrc.
On Friday 30 January 2004 07:51 am, you wrote:
> to All,
>
> I am trying to set up some automatic FTP'ing and am using the .netrc
file.
> I have it working fine as a standard user but my hopes are to
eventually
> schedule it to run via cron.
>
> Since it will be running as root I am wondering where the .netrc file
> should be located so that it can run via root through a cron'ed
process.
>
> Any pointers or suggestions for automatic FTP'ing via cron as root
would be
> greatly appreciated.
>
> Thanks guys,
>
> Mark
Your ISP has scanned this email for Viruses and Spam Control.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:33 EDT