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.

/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:
    16
    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:
    18
    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:
    16
    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:
    36
    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:
     
  5. jamesbond

    jamesbond Well-Known Member

    Joined:
    Oct 9, 2002
    Messages:
    738
    Likes Received:
    1
    Trophy Points:
    18
    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:
    18
Loading...

Share This Page