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!

/scripts/securetmp restores with incorrect /tmp permissions

Discussion in 'General Discussion' started by mr.wonderful, Feb 14, 2004.

  1. mr.wonderful

    mr.wonderful BANNED

    Joined:
    Feb 1, 2004
    Messages:
    345
    Likes Received:
    0
    Trophy Points:
    166
    We ran securetmp on our box as a test. We told securetmp not to activate on reboot. We rebooted the box to find that /tmp was only barely restored.

    After looking at /tmp there was no more mysql.sock, horde.log, .s.PGSQL.5432= and .font-unix/ was missing. :confused:

    The reason? Because /tmp had a permission of

    drwxr-xr-x 3 root root

    instead of

    drwxrwxrwx 3 root root

    Therefore on reboot none of the files above werre recreated in /tmp.

    If your running securetmp and you think your going to have a working /tmp when you reboot you better think again.

    After i rebooted with the proper /tmp permission mysql.sock and .font-unix was recreated however what about horde.log and .s.PGSQL.5432=????
     
  2. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    168
    Put in a bug report on this...I haven't seen the script lately, as i don't have acccess to a CPanel server at the moment, but I thought it did 1777.
     
    #2 nickn, Feb 14, 2004
    Last edited: Feb 14, 2004
  3. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    343
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    The script does say

    chmod(oct(1777),"/tmp");
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    168
    I think it should be doing a recursive chmod...
     
Loading...

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