Partitioning [SOLVED]: Cannot execute any files from separate home partition

Partitioning [SOLVED]: Cannot execute any files from separate home partition

Home Forums Partitioning Partitioning [SOLVED]: Cannot execute any files from separate home partition

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36100

    Anonymous

    QuestionQuestion

    Recently migrated my home to a separate partition so I could have the same home on two distros.

    As an effect I cannot execute any more binaries from my home directory which is something I do not want.

    zython@eden:~$ lsblk 
    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda      8:0    0 111,8G  0 disk 
    ??sda4   8:4    0    10G  0 part 
    ??sda2   8:2    0     1K  0 part 
    ??sda5   8:5    0  11,7G  0 part [SWAP]
    ??sda3   8:3    0    43G  0 part /home/zython
    ??sda1   8:1    0  47,2G  0 part /
    zython@eden:~$ 
    

    This is the output of my lsblk.

    Heres the output of my /etc/fstab:

    zython@eden:~$ cat /etc/fstab 
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda1 during installation
    UUID=327b357e-8ba4-40e5-99d3-dac54445471c /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=f4ae0a1c-b1f3-4db1-8151-0f9e359b5f80 none            swap    sw              0       0
    #home:
    
    UUID=3d37837c-3136-45d7-bdd8-9d9dc5127568 /home/zython/ ext4 defaults,exec,user 0 0
    

    I have seen other answers with NTFS partitions which is not the case here.

    I only want to execute binaries again.

    I have tried to put a exec flag there in the last line from the fstab and have restarted the machine since but that did not have any effect.

    How should I proceed ?

    #36101

    Anonymous

    Accepted AnswerAnswer

    As mentioned in a comment, the problem is user in the mount options which implies noexec and is overriding the previous exec. The user probably isn’t needed and may be removable, but swapping the order of user and exec should work too.

    Source: https://askubuntu.com/questions/985384/cannot-execute-any-files-from-separate-home-partition
    Author: thomasrutter
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.