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.

/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:
    0
    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:
    18
    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,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    The script does say

    chmod(oct(1777),"/tmp");
     
  4. nickn

    nickn Well-Known Member
    PartnerNOC

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

Share This Page