Question concerning fstab, umask, chmod and executable files
I have a question concerning umask, chmod, and why files on a certain partition won't become non-executable. I have a FAT partition that holds mostly music. I don't want the music files to be executable, but I can't figure out how to make them non-executable. The partition in questions is /dev/sda6, mounted at /data.
Some things that I have tried are: Code:
chmod a-x <file name> Code:
pmdkh@localhost:/data/Music$ ls -al test Code:
pmdkh@localhost:/data/Music$ umask -S Code:
pmdkh@localhost:/data/Music$ cat /etc/fstab Code:
umask 022 Code:
pmdkh@localhost:~$ umask -S I'm using Arch Linux. Let me know if I need to provide more information. Thanks for any help. |
vfat doesn't support setting/removing Linux type permissions.
To turn of all exec functions on that partition, change your fstab to add to noexec option to the mount that mounts your vfat. |
Quote:
Code:
/dev/sda6 /data vfat uid=1000,gid=1000,fmask=133,dmask=022 0 0 |
Please note that, even when a file is not executable, it is still often possible to execute it, certainly if it is not a binary.
Scripts, for one, can be executed by calling the interpreter and giving it as option the name of the script. For instance Code:
/bin/bash /data/myscript.sh |
Quote:
|
All times are GMT -5. The time now is 02:57 PM. |