Automounters and permissions

From Helpful
Jump to navigation Jump to search
This article/section is a stub — probably a pile of half-sorted notes and is probably a first version, is not well-checked, so may have incorrect bits. (Feel free to ignore, or tell me)

The issue

This article/section is a stub — probably a pile of half-sorted notes and is probably a first version, is not well-checked, so may have incorrect bits. (Feel free to ignore, or tell me)


When something like udisks, the freedesktop automounter, mounts a non-*nix filesystem like FAT or NTFS, it has to choose how to map permissions from a different model -- FAT is itself permissionless, and NTFS has ACLs but resolving those to users only makes sense if you match identities between systems (possibly federate them). That might make sense for your network-based profiles in LDAP-like domain setups, but basically for anything else.


So instead it fakes permissions, pretending on the linux side that each directory and each file has a pretedetmined set of permission bits, and not really translating that to the other side.


Because it mounts as the current user, and it decides that in some situations you don't want your mount open to the world, this brings up the potential problem that files copied from such a mount won't allow group or other to do anything.

That's nice and strict, but there are a good number of situations (e.g. shared computers) where you'll just end up with files you can'd do anything with without a bunch of permission bother.

Solutions

This article/section is a stub — probably a pile of half-sorted notes and is probably a first version, is not well-checked, so may have incorrect bits. (Feel free to ignore, or tell me)


Details

This article/section is a stub — probably a pile of half-sorted notes and is probably a first version, is not well-checked, so may have incorrect bits. (Feel free to ignore, or tell me)


To read

This article/section is a stub — probably a pile of half-sorted notes and is probably a first version, is not well-checked, so may have incorrect bits. (Feel free to ignore, or tell me)


https://wiki.archlinux.org/index.php/Udev#Mount_drives_as_a_normal_user

http://askubuntu.com/questions/54321/how-do-i-give-multiple-users-access-to-a-windows-ntfs-partition/54324#54324


http://ubuntuforums.org/showthread.php?t=168221

http://www.reactivated.net/writing_udev_rules.html#ownership


http://b.andre.pagesperso-orange.fr/permissions.html

http://www.swerdna.net.au/susentfs.html