Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    39
    Likes Received:
    0
    Trophy Points:
    156
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,791
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kamm

    kamm Active Member

    Joined:
    Jan 17, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Thanks for this informative reply.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice