mardi 24 février 2015

User cannot access crontab


Oracle Linux 5.10


Root user can access crontrab, but not any other user. There is no /etc/cron.allow and the /etc/cron.deny is an empty file.


Using Oracle user account:


[oracle@dub-ImrORA2 ~]$ crontab -e


Authentication failure You (oracle) are not allowed to access to (crontab) because of pam configuration.


/etc/pam.d/crond listing:


auth sufficient pam_env.so


auth required pam_rootok.so


auth include system-auth


account required pam_access.so


account include system-auth


session required pam_loginuid.so


session include system-auth


crond is running


[root@dub-ImrORA2 pam.d]# ps -aef | grep cron root 3559 1 0 Jan29 ? 00:00:05 crond root 25518 25279 0 13:19 pts/2 00:00:00 grep cron


Permissions on crontab


[root@dub-ImrORA2 ]# ls -al /usr/bin/crontab -rwxr-xr-x 1 root root 315640 Dec 20 2011 /usr/bin/crontab


Permission on /var/spool/cron/oracle


[root@dub-ImrORA2 ]# ls -al /var/spool/cron/oracle -rw------- 1 root root 125 Feb 24 11:43 /var/spool/cron/oracle



Aucun commentaire:

Enregistrer un commentaire