Hello All,
Anybody please help me to know ,what happens when a user having entry in both cron.allow and cron.deny files.Wheather the user will be able to access the crontab???
Thanks in advance
Vaisakh
Hello All,
Anybody please help me to know ,what happens when a user having entry in both cron.allow and cron.deny files.Wheather the user will be able to access the crontab???
Thanks in advance
Vaisakh
I am not in front of a Solaris system at the moment but as far as I recall cron.allow is checked before cron.deny. Therefore if the user is in both, the user will have permission.
Easy to check, log is as a user that is both in cron.allow and cron.deny and try do a crontab -l.
Yeah...its correct....thanks for the reply..
Are you sure??? From my understanding and experience, I remember correctly that the cron.deny is read by default. Solaris don't have a cron.allow file by default as well(just to add-on)
btw for your ref Controlling Access to crontab (System Administration Guide, Volume 2) - Sun Microsystems
Its my mistake.
bash-3.00# su test
$ crontab -l
crontab: can't open your crontab file.
This user test is having entry in both the files.
Thanks
I have just checked this on my system. If a user exist on both file then he will be allowed. Because if you are not allowed to use crontab then you will get the following msg after running crontab -l command:
crontab: you are not authorized to use cron. Sorry.