I have Ubuntu 10.04 LTS (Lucid Lynx).
I've noticed recently every file on my hard drive gets the executable privilege, even every text files, so when I open it a pop-up window asks me what to do (run in terminal-Display-Cancel-Run).
I tried to change permissions in the terminal as sudo chmod a-x -Rv /media/D/*
. It shows me that privileges have been changed to 666
which means rw-rw-rw
, but actually nothing has been done; it's still as executable privilege given.
I tried to move some files to the desktop. Then did as above, and it was successful.
My hard drive is formatted as "FAT32". What would be the problem?
dmask
is what permissions are applied to directories, andfmask
is what permissions are applied to files. As to doing it each time, if there is a certain set of permissions you need, you'll need to edit them into thefstab
(I think?) file which contains the default mount settings. If you need more details than this, search for 'default mount permissions' or something along those lines, there are a bunch of related questions – David Oneill Apr 02 '12 at 20:23