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!

/var/tmp/

Discussion in 'General Discussion' started by Finkinstein, Aug 21, 2003.

  1. Finkinstein

    Finkinstein Well-Known Member

    Joined:
    Mar 21, 2003
    Messages:
    131
    Likes Received:
    0
    Trophy Points:
    166
    Anything important in /var/tmp/ I should know about? Appears someone uploaded something to it but I don't know what. Can it all be deleted?

    cPanel.net Support Ticket Number:
     
  2. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    168
    Leave the mysql.sock symlink in.

    cPanel.net Support Ticket Number:
     
  3. Faldran

    Faldran Well-Known Member

    Joined:
    May 28, 2002
    Messages:
    136
    Likes Received:
    0
    Trophy Points:
    316
    Here is good question..

    Will it work fine if you symlink /var/tmp/ to the /tmp that you have mounted with noexec, etc....

    Anyone done that?

    cPanel.net Support Ticket Number:
     
  4. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    166
    Yes, symlinking /var/tmp to /tmp would be ideal and works fine. Just make sure that when you compile apache using buildapache that you specify an alternate tmp directory before proceeding.

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    168
    I've read several posts about symlinking /var/tmp to /tmp.
    I have been running /tmp with the noexec and nosuid flags for a long time now without problems.

    I am thinking of symlinking /var/tmp to /tmp since more exploits are now starting to target /var/tmp instead of /tmp

    In the other posts noboby mentiones that /var/tmp might be used to execute temporary files with CPanel updates or installing rpm's. I thought this was the case.

    Do we still have to specify an alternate tmp directory for buildapache for example?

    Can I safely symlink it without any other modifications?
     
  6. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    168

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