noexec Parameter for /tmp Inside /etc/fstab File May Prevent You From Upgrading Ubuntu 11.10 To 12.04

Ubuntu 12.04 LTS (Precise Pangolin), source is from http://en.wikipedia.org/wiki/Ubuntu_%28operating_system%29

Ubuntu 12.04 LTS (Precise Pangolin), source is from http://en.wikipedia.org/wiki/Ubuntu_%28operating_system%29

Some of you might have secure your Ubuntu 11.10’s /tmp directory by editing the /etc/fstab and having /tmp as noexec, but doing this will prevent some of you to upgrade Ubuntu 11.10 to 12.04.  The solution is to remove noexec parameter from /tmp in /etc/fstab and remount /tmp.  Afterward you can upgrade Ubuntu 11.10 to 12.04.  Check out the exact process of how to remove noexec from /tmp inside /etc/fstab and upgrade Ubuntu 11.10 to 12.04 through command lines right after the break.

  1. sudo -i
  2. vim.tiny /etc/fstab
  3. hit letter i on your keyboard to have vim.tiny enters the editing mode
  4. scroll down till you see something like this [UUID=xxx-xxx-xxx…     /tmp     ext4     defaults,noexec,nosuid     0     2]
  5. remove noexec from the line you see above for /etc/fstab
  6. hit ESC key on your keyboard
  7. type in [:wq] without the square brackets (of course) to save /etc/fstab file
  8. type in this command [mount -o remount /tmp] without using the square brackets, when done you should see nothing spits out from the terminal (it means no error)
  9. let stick with the terminal and use command lines to upgrade your system, type in the two commands you see below, each on its own line, OK?
    1. apt-get install update-manager-core
    2. do-release-upgrade
  10. you might have to answer yes or no for few things during the upgrade process, so don’t close that terminal till upgrade is completely finished, OK?  When done upgrade, secure your /tmp directory again by going back into the /etc/fstab, and re-entering the noexec into the line which specifies a configuration of /tmp (the line you see in step #4), hit ESC key to save /etc/fstab file, and type in [:wq] to exit and save /etc/fstab file, and finally remount your /tmp directory as how you had done in step #8

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.