I am working on converting an Ubuntu (14.04 LTS) installation into a kiosk-like system with disabled USB storage. However, this does not prevent a user from mounting an MTP device such as an android phone.
This problem is not the same as preventing auto-mounting of MTP devices, which has been solved in other questions on AskUbuntu.
- I want to permanently disallow MTP and other storage devices from being mounted by a particular user or group. (Maybe by disabling mtpfs/gvfs?)
- What some other means of connecting writeable storage devices that I should take care of (like UMTS)?
edit: I should add that I disabed USB storage by revoking access rights for the group in question by chown'ing /media to admin:myusbaccessgroup. Obviously, the users/groups I want to prevent from using the USB are not in myusbaccessgroup.
A bounty was put for this answer but no successful solution was found. Please see the answers before followed by the chat room discussion.
Giving up, I installed Ubuntu 12.04 instead, since it doesn't have support for MTP out of the box. However, PTP devices still get mounted.