The main reason I want this is my heavy use of
dircolors, especially for
For example, whenever a
.mp3 file is copied from NTFS, it will have permissions set by
umask 022 which ought to be standard value in most modern distros.
However, for audio files this makes no sense: due to the fact that their permissions get set to
rwxr-xr-x), they will get the same color as an executable shell script, while I'd really like to have this color reserved for true executables. This is not Windows; even with the
x permission set for owner/group/other you cannot expect
./track1.mp3 to work in terminal so that it make an attempt to pick a default console player.
So I'd like to have a certain
umask ONLY for audio files, i. e. that any files like .mp3, .wav, .ogg and so on would always get set their mode to
644, while leaving all other files copied to this place at their default
Is there any way to accomplish this?
cp --preserve will NOT preserve original permissions on NTFS either, since NTFS is notoriously ignorant about *NIX permission systematic.)