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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    569
    Likes Received:
    40
    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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    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.
     
Loading...

Share This Page