The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

No access to crontab via shell / pam configuration

Discussion in 'General Discussion' started by kamm, Jul 31, 2012.

  1. kamm

    kamm Active Member

    Joined:
    Jan 17, 2004
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Hi,

    My client's host has recently changed server. On the new server we are unable to access cron via shell or jailshell.

    e.g.

    Code:
    > someuser@example.com [~]# crontab -l
    >
    > Authentication service cannot retrieve authentication info
    > You (someuser) are not allowed to access to (crontab) because of pam configuration.
    
    I'd be grateful for input that I can pass on to the client's hosting provider to resolve this issue.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    This is a known bug with "/usr/local/cpanel/bin/setupvirtfs" which results in invalid entries in the "/home/virtfs/${USER}/etc/shadow" file. For reference, the internal case number associated with this bug is 59760.

    A resolution for this issue has been pushed out to cPanel 11.32.4. This build of cPanel is currently only available on the "EDGE" build tier which is not intended for a production environment. You should no longer encounter this problem once this version reaches your build tier.

    A manual workaround at the moment involves editing the user's shadow file to append three trailing colons.


    EX in /home/virtfs/cptest/etc/shadow :

    Code:
    cptest:$1$GSV/dsgghd$Xpn6UNuuNOWB0:15498:0:99999:7
    Modified To:

    Code:
    cptest:$1$GSV/dsgghd$Xpn6UNuuNOWB0:15498:0:99999:7:::
    Anyone attempting this manual workaround should first umount all virtfs mounts. The safer workaround would be to edit the cron job via cPanel.

    Thank you.
     
  3. kamm

    kamm Active Member

    Joined:
    Jan 17, 2004
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Thanks for this informative reply.
     
Loading...

Share This Page