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!

command not found when running through cron

Discussion in 'Security' started by Daniel Ahern, Oct 20, 2016.

Tags:
  1. Daniel Ahern

    Daniel Ahern Registered

    Joined:
    Sep 6, 2016
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Seoul
    cPanel Access Level:
    Root Administrator
    I have a script that bans certain ip addresses. It works when run from the command line as root.

    When I run it through as a cronjob as root, though, it gives me the error:
    csf: command not found
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    42
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    command not found means csf is not installed or cron is not set correctly.

    Please make sure the cron script is set correctly.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Is this account assigned jailed shell access, or is CageFS (via CloudLinux) installed on the system?

    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