Can you remount /tmp partition to exec while live?

43,432

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?

Share:
43,432

Related videos on Youtube

Charles Yarbrough
Author by

Charles Yarbrough

I work for one of the world's fastest web hosting companies. - WebHost.Pro

Updated on September 18, 2022

Comments

  • Charles Yarbrough
    Charles Yarbrough over 1 year

    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
    Charles Yarbrough about 7 years
    The location is built into the installer, it's really annoying. This the latest FFMPEG. Thanks, I'm going to try it. Fingers crossed.