Announcement

Collapse
No announcement yet.

Setting EXEC on a partion

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Setting EXEC on a partion

    I'm doing some javascript development on my laptop and I can't run some node js modules because the partition they are installed on does not have the EXEC option set.

    This is what the partition looks like when I run `mount`

    `/dev/sda6 on /home/hoo/storage type ext4 (rw,nosuid,nodev,noexec,relatime,data=ordered,user )`

    How do I set the exec option and then set it back when I'm done?

    #2
    See https://askubuntu.com/questions/6788...ount-with-exec
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      This is the current line in fstab

      UUID=cc92def5-c350-4f09-9336-589090058a75 /home/hoo/storage ext4 defaults,user 0 0

      Do I change it to

      # UUID=cc92def5-c350-4f09-9336-589090058a75 /home/hoo/storage ext4 defaults,user 0 0
      UUID=cc92def5-c350-4f09-9336-589090058a75 /home/hoo/storage ext4 rw,nosuid,nodev,exec,relatime,data=ordered,user 0 0

      ?

      And then to change it back just swap the position of the hash mark?

      Is that correct?

      Comment


        #4
        Originally posted by TwoFistedJustice View Post
        # UUID=cc92def5-c350-4f09-9336-589090058a75 /home/hoo/storage ext4 defaults,user 0 0
        UUID=cc92def5-c350-4f09-9336-589090058a75 /home/hoo/storage ext4 rw,nosuid,nodev,exec,relatime,data=ordered,user 0 0
        As I understand the answer, this is what your FSTAB entry should look like:

        UUID=cc92def5-c350-4f09-9336-589090058a75 /home/hoo/storage ext4 rw,nosuid,nodev,relatime,data=ordered,user,exec 0 0 << emphasis added

        The position of exec is important, since user also applies noexec. By putting exec after user, you ensure that exec is set. The most important options should be listed last.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          That seems to have solved my problem.

          Thank you Snowhog!

          Comment

          Working...
          X