Secure /tmp /dev/shm /var/tmp ???

Discussion in 'Linux VPS/Dedicated - cPanel' started by 87493, Nov 7, 2007.

  1. 87493

    87493 New Member

    Is there a way to secure /tmp /dev/shm and /var/tmp?
     
  2. khiltd

    khiltd New Member

    "Secure" is a pretty nebulous term. Are you after something beyond what chmod and chown offer or have you not tried them yet?
     
  3. 87493

    87493 New Member

    What can they be chmod to and still function for the apps that need to be able to write to them?
     
  4. khiltd

    khiltd New Member

    That depends entirely on what user the processes are executed as. The best solution would be to give each its own user account, make them the owner and disallow everyone else.
     
  5. 87493

    87493 New Member

    I think Cpanel is the only thing I'm running that uses them. Would 755 be the proper setting?
     
  6. khiltd

    khiltd New Member

    Then you probably shouldn't change anything.
     

Share This Page