Results 1 to 3 of 3
  1. #1
    Join Date
    May 2006
    Posts
    249

    hardening /tmp and after reboot....

    Hello,

    I was trying to harden /tmp..

    since /tmp does not have seperate partition, I have created

    dd if=/dev/zero of=/usr/tmpDSK bs=1024 count=512000

    and I have edited /etc/fstab to mount /usr/tmpDSK as /tmp with

    /usr/tmpDSK /tmp ext3 loop,noexec,nosuid,rw 1 0

    and rebooted it...

    and when it reboot, I have check mount

    and I don't see any /usr/tmpDSK is mounted...

    is this normal? or it is not mounted?

    please advise me..

    thanks

  2. #2
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    Did you run

    /sbin/mkfs -t ext3 /usr/tmpDSK

    ?
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  3. #3
    Join Date
    May 2006
    Posts
    249
    Oh.. thanks..

    I think I have miss formatting...

    [[email protected] ~]# mount
    /dev/hda3 on / type ext3 (rw)
    none on /proc type proc (rw)
    none on /sys type sysfs (rw)
    none on /dev/pts type devpts (rw,gid=5,mode=620)
    usbfs on /proc/bus/usb type usbfs (rw)
    /dev/hda1 on /boot type ext3 (rw)
    none on /dev/shm type tmpfs (rw,noexec,nosuid)
    /usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0)
    none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
    (mounted fine)

    Thanks

Posting Permissions

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