Results 1 to 2 of 2

Thread: How to secure

  1. #1
    Join Date
    Mar 2009
    Posts
    64

    How to secure

    How to secure /tmp?

  2. #2
    Join Date
    Nov 2010
    Location
    Arizona
    Posts
    297
    Code:
    cd /dev
    dd if=/dev/zero of=tmpMnt bs=1024 count=100000
    /sbin/mke2fs /dev/tmpMnt
    cd /
    cp -R /tmp /tmp_backup
     mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp
    chmod 0777 /tmp
    cp -R /tmp_backup/* /tmp/
    rm -rf /tmp_backup
    echo "/dev/tmpMnt             /tmp                    ext2    loop,noexec,nosuid,rw  0 0" >> /etc/fstab

Similar Threads

  1. Replies: 14
    Last Post: 10-31-2010, 01:49 PM
  2. Replies: 4
    Last Post: 07-13-2010, 04:09 PM
  3. Summer is coming around.. Secure your boxes...Secure your business
    By Steven in forum Other Web Hosting Related Offers
    Replies: 0
    Last Post: 06-05-2005, 07:26 PM
  4. Summer is coming around.. Secure your boxes...Secure your business
    By Steven in forum Employment / Job Offers
    Replies: 7
    Last Post: 06-05-2005, 10:15 AM
  5. Telnet, Secure, Not Secure, Scripts, Shared Server
    By Domenico in forum Hosting Security and Technology
    Replies: 15
    Last Post: 10-06-2001, 11:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •