I moved from Zorin OS to Linux Mint after one year from using it (I had stability issues on Zorin) and everything has been mostly alright so far, except dealing with NTFS filesystems.
I have three hard drives with important files on them (None of them have Windows installations) and I noticed that whenever I would transfer text files/scripts out of the drive, Mint would ask me if I want to execute or display them which I found quite odd. I did a lot of research online and found out that this hole digs quite deep, so I ended up learning about masks in /etc/fstab and permissions which was interesting actually but... I'm quite confused because I didn't have to bother with this on Zorin. (I use the same fstab file btw.)
From what I learned, my best option would be to mask out the executable permissions from files so this wouldn't happen, but after experimenting for an entire hour, it dawned on me that fmasks and dmasks have absolutely no effect.
Here is one of my hard drives in /etc/fstab (The one I was experimenting with):
Code: Select all
UUID=CA26D6FA26D6E68B /home/hatsumemio/HDDs/DataXT ntfs-3g auto,user,dmask=0070.fmask=0170 0 1
Code: Select all
hatsumemio@mintpc:~/HDDs/DataXT$ ls -l
total 1189408
drwx---rwx 1 root root 0 Sep 24 16:06 '$RECYCLE.BIN'
drwx---rwx 1 root root 4096 Jun 29 22:25 Archives
-rwxrwxrwx 1 root root 1217947648 Apr 24 00:39 kanon.iso
-rwxrwxrwx 1 root root 0 Oct 22 14:10 'Untitled Document'
To further prove this, I set the mask to 0011 to see if permissions would change, but they did not:
Code: Select all
root@mintpc:/home/hatsumemio/HDDs# cat /etc/fstab
UUID=6F8E-A862 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
#HARD DRIVE AUTO-MOUNT
UUID=0FE8084D0FE8084D /home/hatsumemio/HDDs/Data3 ntfs-3g auto,user,rw 0 1
UUID=CA26D6FA26D6E68B /home/hatsumemio/HDDs/DataXT ntfs-3g auto,user,dmask=0070.fmask=0011 0 1
UUID=3644C65E44C6210B /home/hatsumemio/HDDs/DataA ntfs-3g auto,user,rw 0 1
#UUID=35569258560F4A9F /home/hatsumemio/HDDs/DataSSD2 ntfs-3g auto,user,rw 0 1
#UUID=4344D31C3D562116 /home/hatsumemio/HDDs/DataSSD ntfs-3g auto,user,rw 0 1
root@mintpc:/home/hatsumemio/HDDs# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 16M 0 part
└─sda2 8:2 0 1.8T 0 part /home/hatsumemio/HDDs/DataA
sdb 8:16 0 931.5G 0 disk
├─sdb1 8:17 0 430.8G 0 part /home/hatsumemio/HDDs/DataXT
└─sdb2 8:18 0 500.8G 0 part /home/hatsumemio/HDDs/Data3
sdc 8:32 1 28.7G 0 disk /media/hatsumemio/18C9-FBF2
sr0 11:0 1 1024M 0 rom
nvme0n1 259:0 0 447.1G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
└─nvme0n1p2 259:2 0 446.6G 0 part /
root@mintpc:/home/hatsumemio/HDDs# umount /dev/sdb1
root@mintpc:/home/hatsumemio/HDDs# mount /dev/sdb1
root@mintpc:/home/hatsumemio/HDDs# ls -l DataXT/
total 1189408
drwx---rwx 1 root root 0 Sep 24 16:06 '$RECYCLE.BIN'
drwx---rwx 1 root root 4096 Jun 29 22:25 Archives
-rwxrwxrwx 1 root root 1217947648 Apr 24 00:39 kanon.iso
-rwxrwxrwx 1 root root 0 Oct 22 14:10 'Untitled Document'
-rwxrwxrwx 1 root root 0 Oct 22 15:39 'Untitled Document 2'
Code: Select all
root@mintpc:/home/hatsumemio/HDDs# cat /etc/fstab
UUID=6F8E-A862 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
#HARD DRIVE AUTO-MOUNT
UUID=0FE8084D0FE8084D /home/hatsumemio/HDDs/Data3 ntfs-3g auto,user,rw 0 1
#UUID=CA26D6FA26D6E68B /home/hatsumemio/HDDs/DataXT ntfs-3g auto,user,dmask=0070.fmask=0011 0 1
UUID=3644C65E44C6210B /home/hatsumemio/HDDs/DataA ntfs-3g auto,user,rw 0 1
#UUID=35569258560F4A9F /home/hatsumemio/HDDs/DataSSD2 ntfs-3g auto,user,rw 0 1
#UUID=4344D31C3D562116 /home/hatsumemio/HDDs/DataSSD ntfs-3g auto,user,rw 0 1
root@mintpc:/home/hatsumemio/HDDs# umount /dev/sdb1
root@mintpc:/home/hatsumemio/HDDs# mount /dev/sdb1
mount: /dev/sdb1: can't find in /etc/fstab.