LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Remove noexec from tmp directory (https://www.linuxquestions.org/questions/linux-general-1/remove-noexec-from-tmp-directory-769763/)

Skillz 11-17-2009 03:36 PM

Remove noexec from tmp directory
 
How do I remove the noexec from the tmp directory, temporarily?

repo 11-17-2009 03:38 PM

To set the noexec
Code:

mount -o remount,noexec /tmp
to set it back
Code:

mount -o remount,exec /tmp

vorbote 11-17-2009 03:40 PM

Quote:

Originally Posted by Skillz (Post 3760476)
How do I remove the noexec from the tmp directory, temporarily?

Assuming that you have a separate tmp partition (how else would it be mounted noexec), this ought to work: "mount -o remount,exec /tmp". To reenable noexec, use the same command with, well..., noexec.

Skillz 11-21-2009 01:36 AM

Quote:

Originally Posted by repo (Post 3760478)
To set the noexec
Code:

mount -o remount,noexec /tmp
to set it back
Code:

mount -o remount,exec /tmp

Thanks,

This worked only I had to do the commands in reverse order.


All times are GMT -5. The time now is 05:10 AM.