thank you for the reply but the reason i'm asking this is that i was able to run programs like this "hello" script on my /tmp folder.
Code:
#hello.c
#include <stdio.h>
int main (void)
{
printf("Hello, World!");
return 1;
}
here's a copy of my fstab.
Code:
LABEL=/ / ext3 defaults,usrquota 1 1
LABEL=/backup /backup ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults,usrquota 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults,nosuid,noexec,rw 0 0
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults,usrquota 1 2
LABEL=/var /var ext3 defaults,usrquota 1 2
/dev/sda8 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

Originally Posted by
webtiva
No, you already have a virtual directory - essentially their "tmpMnt" is your "tmpfs". If you loaded up /etc/fstab in your favorite editor you would see the lines above near the bottom in there. fstab is basically your filesystem and it's mounting procedures in a nice little table for you. Edit it and restart and your box will mount drives according to this file.
What the how to is doing is simple: creating a file, mounting it as a directory (tmp) and setting permissions on it through the fstab. It's a fast and easy way to a nice, neat tmp directory you can easily change or dump later.
Credit to Steve Leggett (Ramprage) over at webhostgear.com for coming up with this over 3 years ago. If you liked this helpful hint I would suggest you check out his site!