Error cronjobs
-
Hello!
I have all users with crons giving a similar error to the following:
(larrain) FAILED to authorize user with PAM (Authentication service cannot retrieve authentication info)
(webcor) FAILED to authorize user with PAM (Authentication service cannot retrieve authentication info)Do you know how it can be corrected? The user crons seem not to be running.
-
@josepp said in Error cronjobs:
FAILED to authorize user with PAM (Authentication service cannot retrieve authentication info)
hello, is selinux is enabled ?
if not tally with this files
/etc/passwd
,/etc/group
and/etc/shadow
they should have user added in the files. -
@sandeep said in Error cronjobs:
/etc/shadow
Hello!
Selinux appears to me like this:
Disabled.
I see user references in these files:
/etc/passwd
/etc/groupBut in this file:
/etc/shadow
I only see reference to 4 users on the server, root and three others. Is this normal? How should I fix it? I see the reference to a user and a kind of encrypted password.
Greetings!
-
@josepp you need to run
mount -o rw,remount /
to enable read write mode then runpwconv
to generate the shadow file, then usepasswd
command to reset the user password. Hopefully it will solve it. Reboot system. -
@sandeep Hello!
I've noticed that I don't get that error anymore, but it seems that the user level cron is not running on the server. Do you have any idea where the problem might be?
Now the log shows this:
Jan 5 11:05:01 centosweb CROND[16950]: (larrain) CMD (wget http://www.*************.com/modulos/PHPMailer/examples/backupmysql.php )
Greetings!
-
@josepp run the command only in cmd line and check what it outputs.