Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    BANNED
    Join Date
    Feb 2004
    Posts
    349

    Default /scripts/securetmp restores with incorrect /tmp permissions

    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.

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2003
    Posts
    647

    Default

    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.
    Last edited by nickn; 02-14-2004 at 04:17 PM.

  3. #3
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    The script does say

    chmod(oct(1777),"/tmp");
    Regards,
    David
    Forum Moderator

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2003
    Posts
    647

    Default

    Originally posted by dgbaker
    The script does say

    chmod(oct(1777),"/tmp");
    I think it should be doing a recursive chmod...

Similar Threads & Tags
Similar threads

  1. Using /scripts/securetmp to secure /tmp
    By keddie in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-04-2009, 11:48 AM
  2. How to know if tmp is secure with /scripts/securetmp
    By demomen in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-17-2006, 08:35 PM
  3. Create /tmp partition as noexec or /scripts/securetmp
    By webignition in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-19-2005, 03:28 AM
  4. After running /scripts/securetmp/ and clearing tmp mysql failed
    By Insyder in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-08-2004, 01:26 PM
  5. How large is /tmp when created with /scripts/securetmp?
    By knipper in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-19-2004, 09:50 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube