I have a server I need to re mount the /tmp partition to run exec.

The code I want to use is:

mount -o remount,exec /tmp

Run the program that needs it.

Than change it back.

mount -o remount,noexec /tmp

This is production server so I'm really worried about un mounting /tmp or changing the mount.



That should work. I have used that exact command on mounted filesystems before with no problem. Can't you put the program somewhere that already has exec enabled?

  • The location is built into the installer, it's really annoying. This the latest FFMPEG. Thanks, I'm going to try it. Fingers crossed. – Charles Yarbrough Feb 24 '17 at 20:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.