Permissions when copying to USB key

Florence Berbain fberbain at xs4all.nl
Sun Feb 13 18:01:48 UTC 2005


Daniel Silverstone wrote:

>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.
>
>  
>
Yes, the key is formatted as vfat, as I'd like to be able to use it 
under Windows as well.

>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
>  
>
Actually, if I could do something like "chmod -R -x *", that would be 
good enough for me. The problem is, of course, it doesn't work because 
once directories are not executable, chmod can't recursively go into them.

I can't figure out from the chmod man page how to do a chmod -x 
recursively on all files and not on directories. Anybody knows how to do 
that?

Thanks again,
Florence






More information about the ubuntu-users mailing list