mounting tmp - no space on device [message #35666] |
Sun, 12 April 2009 19:05 |
devonblzx
Messages: 127 Registered: December 2006
|
Senior Member |
|
|
Hello,
To secure the /tmp partition, we try to mount it with noexec,nosuid with:
mount -t tmpfs -o noexec,nosuid tmpfs /tmp/
However, we notice that after a while it will claim there is no space left on the device on the /tmp partition which causes issues with sessions and other web scripts.
Even after removing all the files in /tmp it will still claim there is no space.
Any ideas how to solve this?
ByteOnSite President
|
|
|
|
Re: mounting tmp - no space on device [message #35674 is a reply to message #35666] |
Mon, 13 April 2009 18:49 |
devonblzx
Messages: 127 Registered: December 2006
|
Senior Member |
|
|
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 100G 41G 60G 41% /
tmpfs 3.9G 2.6M 3.9G 1% /tmp
# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/simfs 4000000 311266 3688734 8% /
tmpfs 1011060 171 1010889 1% /tmp
# cat /proc/mounts
simfs / simfs rw 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
tmpfs /tmp tmpfs rw,nosuid,noexec 0 0
Not sure about if it happens without nosuid and noexec yet.
ByteOnSite President
|
|
|