Permissions when copying to USB key

Daniel Silverstone dsilvers at digital-scurf.org
Sun Feb 13 17:41:02 UTC 2005


On Sun, 2005-02-13 at 18:31 +0100, Florence Berbain wrote:
>I have a USB key that is automatically detected by my Ubuntu system 
>(Warty). When I copy a file that does not have executable permissions to 
>the USB key, the copied file on the key is executable for the owner. 
>However, I'd rather like to have the same permissions for both files.
>
>Does anybody know where I can configure this? And is the way it works 
>now the intended behaviour, for some reason?

Assuming the key is formatted for use on Windows it will be using the
vfat filesystem on Ubuntu. Since the vfat filesystem has no way of
representing whether or not a file is executable; and since that
decision is made on a windows box by looking at the content of the file
and deciding if it looks executable or not; the vfat filesystem module
marks everything as executable in order to not limit any opportunity for
execution on a linux based system.

There are options you can pass to mount to get it to prevent this
behaviour but I'm not sure how pmount will interact with them

D.

-- 
Daniel Silverstone                         http://www.digital-scurf.org/
PGP mail accepted and encouraged.            Key Id: 2BC8 4016 2068 7895






More information about the ubuntu-users mailing list