[systemd-devel] automount and user

Lennart Poettering lennart at poettering.net
Wed Nov 18 03:28:30 PST 2015


On Wed, 18.11.15 11:58, Igor Bukanov (igor at mir2.org) wrote:

> Hello,
> 
> I am trying to translate an autofs map into systemd unit files, but I
> could not see how to pass to the mount command an option refering to
> the user who accessed the mount dir. For example, the automap
> contains:
> 
> /mount/dir -fstype=fuse.sshfs,...,id=$UID,gid=$GID remote_user at host:/dir
> 
> which mounts /mount/dir as the user whose process accessed /mount/dir
> first. How do I simulate this with systemd mount/automount units?

We don't support that. Invoking user processes from a system context
is something we generally avoid.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list