1833776 Members
2169 Online
110063 Solutions
New Discussion

Re: Crontab permissions

 
SOLVED
Go to solution
Steve Massey_1
Frequent Advisor

Crontab permissions

Hi
I am trying to implement a password change script that allows the box to change the password every so often based on set values.

I want to do this using cron - problem I have is that every time root crontab is modified it is left as r (444) for others.

how can I ensure that this is always (600) when an administrator changes it??

Any ideas appreciated

Steve
3 REPLIES 3
Solution

Re: Crontab permissions

Try

man umask

you probably want umask 377

good luck
Thomas G. Tudrej
Frequent Advisor

Re: Crontab permissions

umask setitng in /.profile sounds like the place to look.
Fred Martin_1
Valued Contributor

Re: Crontab permissions

Setting umask as suggested, affects all files so that may not be what you want. I wrote a shell script that is a front-end to crontab ... it edits the cron then does a chmod on the file after the fact.
fmartin@applicatorssales.com