LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   changing /tmp mount on fstab file with noexc (https://www.linuxquestions.org/questions/linux-newbie-8/changing-tmp-mount-on-fstab-file-with-noexc-607182/)

emymcse 12-16-2007 06:34 PM

changing /tmp mount on fstab file with noexc
 
Hello,

I need to mount /tmp as a separate drive with noexec and /tmp already mounted on /etc/fstab

LABEL=/tmp /tmp ext3 defaults 1 2
/tmp /var/tmp ext3 defaults,bind,noauto 0 0

if I change the options from defaults,bind,noauto to loop,noexec,nosuid,rw without unmout /tmp , dose these change take effect at the moment ? or I have to unmout and mount /tmp again ?

also what dose these two lines mean :

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/sda6 1035660 42180 940872 5% /tmp
/tmp 1035660 42180 940872 5% /var/tmp

why /tmp mounted to /var/tmp ?? I'm really confused !

Thanks

unSpawn 12-16-2007 06:54 PM

Change settings in fstab, then run 'mount /tmp -o remount' should do if nothing is using /tmp ('fuser /tmp' or 'lsof -w -n +D /tmp'). /tmp and /var/tmp have comparable functions, that may be a reason why it's mounted that way.


All times are GMT -5. The time now is 08:19 PM.