For RHEL5, I know its enabled. But based on your questions above, you are asking 2 things. Where to put audit=1 and if pam_loginuid is right. For these, # cat /proc/cmdline and # cat /proc/self/loginuid would let you check. In the first, make sure audit=1 is there and in the second case, the output should be the uid under which you logged into the system. -Steve
[root@test /root]# cat /proc/cmdline
ro root=LABEL=/ audit=1 rhgb quiet
[root@test /root]# cat /proc/self/loginuid
0
type=USER_ACCT msg=audit(1420656001.965:2804): user pid=6083 uid=0 auid=4294967295 msg='PAM: accounting acct="root" : exe="/usr/sbin/crond" (hostname=?, addr=?, terminal=cron res=success)'and
type=CRED_ACQ msg=audit(1420656001.966:2805): user pid=6083 uid=0 auid=4294967295 msg='PAM: setcred acct="root" : exe="/usr/sbin/crond" (hostname=?, addr=?, terminal=cron res=success)'
[root@test /root]# cat /etc/pam.d/crondso is there any other hints or what can i do esle?
#
# The PAM configuration file for the cron daemon
#
#
session required pam_loginuid.so
auth required pam_unix.so
auth required pam_nologin.so
account required pam_unix.so
password required pam_unix.so
session required pam_unix.so