22

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.

Thanks,

Charles Yarbrough
  • 335
  • 1
  • 2
  • 7

1 Answers1

18

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?

farhangfarhangfar
  • 559
  • 2
  • 5
  • 14
  • 1
    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