Comment 10 for bug 663815

Revision history for this message
Christophe Van Reusel (christophevr) wrote :

Now I'm using ubuntu Natty. Currently natty uses udisks 1.0.2-4ubuntu2 . A very big problem for me is that script files and binaries
 are not executable on a vfat usb stick. Ok for some it's a big problem that all files are mounted with -x option on a vfat drive i know. But for a big majority it's the other way around. The standard behaviour should be -x everywhere on vfat or ntfs as this option can only be give during mount operations. The stick is used on mac,windows and linux. does contain highly sensitif information and for that reason execution can only be done from stick self. For mac no problem as they are using the logic option to mount vfat always with -x . As now since long ubuntu does NOT provide a mean to have a usb stick automounted with exec option for vfat usb sticks. I'm forced to recompile the udisks1.0.2 . After al it's only the udisks-deamon which needs to be changed.

And yes We can do things via fstab but for usb devices this is really not a option we are speaking about portability MULTI system devices (that's why they can't be formated in ext2,3,4,hfs or hfs+ ) .
Before ubuntu just had a system setting so that users easely could change there preferences trough gconf-editor. This is gone now.

I now tried to compile the udisks 1.0.2-4ubuntu2. using the 3 source files. udisks_1.0.2.orig.tar.gz,udisks_1.0.2-4ubuntu2.debian.tar.gz, udisks_1.0.2-4ubuntu2.dsc

From natty self. unpacked using dpkg-source -x udisks_1.0.2-4ubuntu2.dsc . So the specific ubuntu patches where applied.
Then modified the device.c by adding the exec option to vfat .
Then used ./configure followed by make. (did not used install) Then I just copied the udisks-deamon to /usr/lib (replaced the original) Now It does mount vfat with exec, but when unmounting, the mount point into /media is not erased any more.

How to compile to have this udisk-deamon the same like the original one with just my vfat change ?

I gues it's an option when runnig ./configure but I'm already searching for almost a week and can not find any info.

Note the original udisk-deamon is +- 234 kb the compiled by me 930 kb so there is a difference.

Perhaps since this with or whitout exec is such a severe problem and for one user it needs to be whitout for the other user with. In both cases arguments are 100 % valid. neighter is wrong or right or both are wrong and right. -:) Should basic ubuntu better provide two basic packages of udisk. One with exec mount enabled and one with exec disabled. So user can install that what they need with synaptic. And the problem is solved .