Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cronjob to run password protected scripts

Status
Not open for further replies.

sciclunam

Programmer
Oct 12, 2002
138
MT
Hi,

I have a folder in my cgi which contains an emailing script. Due to data sensitivity (email addresses, etc...) I have set a password which prompts you before giving you access.

However, when I set a cronjob to run the script automatically, it failed because of the password. Can I give access to cronjob to run the script? Maybe embedding the password in the cronjob? How will I then make the cronjob secure so that no one can get access to the password?

Thanks.

Getting married in Malta?
Visit
 
1) check the user, is it 'secure' give him access
else
2) ask 4 pwd
3) let the 'secure' user do the cronjob.

Can I give access to cronjob to run the script? Maybe embedding the password in the cronjob?
no ways(in a standard *nix)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top