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.

SOLVED Where should custom bash files go for root?

Discussion in 'Security' started by Chirag Aggarwal, Feb 10, 2018.

  1. Chirag Aggarwal

    Joined:
    Jan 9, 2018
    Messages:
    13
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    I've created a bash file for simple reporting. I'm wondering which one is the safest location to put it? it'll be ran under root user from cron so I am guessing for /root?
     
  2. quizknows

    quizknows Well-Known Member

    Joined:
    Oct 20, 2009
    Messages:
    1,009
    Likes Received:
    87
    Trophy Points:
    78
    cPanel Access Level:
    DataCenter Provider
    leaving it in /root/ should be fine. Else you could put it somewhere like /usr/bin/ with 700 file permissions (on the script itself, not the directory)
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,455
    Likes Received:
    1,608
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I've marked this thread as solved.

    Thanks!
     
Loading...

Share This Page