[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-security] Re: Cron
- Subject: [cobalt-security] Re: Cron
- From: "H.P. Stroebel" <hpstr@xxxxxxxxxxxxx>
- Date: Mon, 12 Jun 2000 01:46:39 +0200
> Date: Sun, 11 Jun 2000 07:35:03 -0700
> From: ISP4all <paul@xxxxxxxxxxxxx>
> To: cobalt-security@xxxxxxxxxxxxxxx
> Subject: [cobalt-security] Cron
>
> Can anyone point me in right direction as to how to set up a crontab
> instruction to run a perl script once a week.
> On the cobaltt site it gives this instruction in the knowledge base:
>
> You can place the CGI you want to run every hour, into the directory
> /etc/cron.hourly. Make sure that the script has execute permissions.
> Also you need to be logged in as root to make this change.
that is right.
> If I carry out these instructions it will not let me FTP the Perl Script
> into the /etc/cron.weekly directory as I get Permission Denied. I am
you should ftp the script to an unprivileged user account, as the user
id and the passwort are transmitted in plain text.
then, move it to to the cron directory by moving into the upload
directory and, su to root and type
mv scriptname /etc/cron.hourly/scriptname
give it the permissions you want, maybe change owner and group, if
necessary, and you`re done.
> also confused as to how the software will determine at what time of the
> day to run the script.
there is a simple entry in the crontab, that every hour executes all
files in the /etc/cron.daily dir, every six hours in the .quarter-daily
dir and so on.
go to /etc and type cat crontab so see the entries (they seem to be a
bit confusing). type man crontab, and soon you`ll understand :-)
> Thanks
>
> Paul
>
> --__--__--
>
> Message: 4
> From: Mike Vanecek <nospam99@xxxxxxxxxxxx>
> To: cobalt-security@xxxxxxxxxxxxxxx
> Subject: Re: [cobalt-security] Cron
> Date: Sun, 11 Jun 2000 09:07:33 -0500
> Organization: anonymous
> Reply-To: cobalt-security@xxxxxxxxxxxxxxx
>
> FTP the cgi script to the user folder the userid owns that logged into the ftp
> server. I.e., if using admin, put the cgi script into the private folder for
> admin. The userid must have write rights in the directory to be able to create
> a file in the directory.
>
> Next, telnet into the server as root or su - depending on the system being
> used and move the file from the userid above to the appropriate directory.
>
> On Sun, 11 Jun 2000 07:35:03 -0700, ISP4all <paul@xxxxxxxxxxxxx> wrote:
>
> :>Can anyone point me in right direction as to how to set up a crontab
> :>instruction to run a perl script once a week.
>
> Put it in /etc/cron.weekly.
>
> :>
> :>On the cobaltt site it gives this instruction in the knowledge base:
> :>
> :>You can place the CGI you want to run every hour, into the directory
> :>/etc/cron.hourly. Make sure that the script has execute permissions.
> :>Also you need to be logged in as root to make this change.
>
> Be sure to check the permissions.
>
> :>If I carry out these instructions it will not let me FTP the Perl Script
> :>into the /etc/cron.weekly directory as I get Permission Denied. I am
> :>also confused as to how the software will determine at what time of the
> :>day to run the script.
>
> /etc/crontab controls how things are run"
>
> # run-parts
> 03,18,33,48 * * * * root run-parts /etc/cron.quarter-hourly
> 04,34 * * * * root run-parts /etc/cron.half-hourly
> 01 * * * * root run-parts /etc/cron.hourly
> 05 0,6,12,18 * * * root run-parts /etc/cron.quarter-daily
> 02 1 * * * root run-parts /etc/cron.daily
> 02 2 * * 0 root run-parts /etc/cron.weekly
> 02 3 1 * * root run-parts /etc/cron.monthly
>
> man crontab -S 5 will give you information on the format.
>
> HTH, Mike.
>
> BTW, this topic would probably be better in cobalt-users. Also, when posting
> it is helpful to put which system you are using in the subject line [Qube2]
> since the various systems are a bit different.
>
> --
>
> For information on the unofficial qube mailing list, see
> http://majordomo.email-lists.com/qube-users/
>
> --__--__--
>
> _______________________________________________
> cobalt-security mailing list
> cobalt-security@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-security
>
> End of cobalt-security Digest
--
H. P. Ströbel
PGP Digital Fingerprint :
58E0 6ECB 620A A689 E206
BCA8 300F BC45 6EEC F7C3
Yes, I do. But not Yahoo.