Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am transfering crontabs from an old server (centos 5.5) to a a new (centos 6.0) and there is a problem with (the most important) user apache. On the new server I am getting the following:

root@newserver $ crontab -u apache -e

Authentication service cannot retrieve authentication info
You (apache) are not allowed to access to (crontab) because of pam configuration.

How can I overcome this?

share|improve this question
    
Does serverfault.com/questions/408331/… help ? –  Iain Jan 9 '13 at 17:57
    
a bit, i guess the problem is there is no record for apache in /etc/shadow but i am not sure if adding it is correct. –  clime Jan 9 '13 at 18:04
1  
All /etc/passwd entries must have a corresponding /etc/shadow entry -- its not just nice its the law. –  mdpc Jan 9 '13 at 18:09
add comment

1 Answer

up vote 3 down vote accepted

This is being caused because you have no entry for apache in your /etc/shadow file. It should contain a entry like this

apache:!!:15168::::::

I just tested this on a C6.3 system and removing it gives exactly the same error you are seeing.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.