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.

/var/spool/cron query

Discussion in 'E-mail Discussions' 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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    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.
     
  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
     
Loading...

Share This Page