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!

/var/spool/cron query

Discussion in 'E-mail Discussion' started by furquan, Jul 25, 2017.

Tags:
  1. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    461
    Likes Received:
    3
    Trophy Points:
    168
    Hello Everyone,

    I was checking through my server and happen to review my cron folder under "/var/spool/cron"

    Here i can see most of the cron jobs of the users owned by root....But few of them are owned by the users themselves .....

    Is this ok, or some kind of security issue ?

    Please assist !

    Thank you for your time.
     
    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:
    44,378
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Cron jobs run based on the type of shell access granted to the account. You will notice the following line in the crontab file for the user when it's assigned "No Shell" or "Jailed Shell" access:

    SHELL="/usr/local/cpanel/bin/jailshell"

    When the account is assigned normal shell access, you will see this line:

    SHELL="/bin/bash"

    The ownership of the crontab files will change depending on which user last edited the it. For instance, if you edit the cron jobs as a user via cPanel, ownership will change to the username. If you update "Shell Access" for the account from WHM, it goes back to root.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. furquan

    furquan Well-Known Member

    Joined:
    Jul 27, 2002
    Messages:
    461
    Likes Received:
    3
    Trophy Points:
    168
    Thank you for your revert Michael.

    I am no more in the office, shall have it checked tomorrow and will revert back accordingly.

    Thank you
     
    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