EnnoxHD / archlinux-install-guide

ArchLinux Installation Guide
MIT License
1 stars 0 forks source link

Can not set executable bit on NTFS partitions #51

Closed EnnoxHD closed 2 years ago

EnnoxHD commented 2 years ago

chmod +x script.sh does not work on mounted NTFS partitions

EnnoxHD commented 2 years ago

Mount options determine the state of the bit. In /etc/fstab:

# <diskname>
/dev/mapper/crypt<diskname>    /mnt/<diskname>    ntfs-3g    noauto,x-systemd.automount,uid=<userid (e.g. 1000)>,gid=<groupid (e.g. 1000)>,dmask=0022,fmask=0033,windows_names    0 0
EnnoxHD commented 2 years ago

Get uid and gid via the id command.