How can I mount some device with read-write access to specific user?
|
There's no generic way to do exactly that. If the filesystem doesn't have a notion of file ownership, it probably has a mount option ( If you only want a specific user to access the filesystem, and there is a FUSE driver for it, then arrange for the user to have read-write access to the device and mount it through FUSE as that user. Another way to only let a specific user (or a specific group, or better fine-tuning through an ACL) is to place the mount point underneath a restricted-access directory:
If you want some users to have read-write access and others to have read-only access regardless of file permissions, mount the filesystem read-write under a restricted access directory and use bindfs to make a read-only view of that filesystem.
You can also make a bindfs view read-write to some users and read-only for others; see the |
|||
|
|
|
You can use the For example :
That will mount a vfat device in |
||||
|
|