mount: add option to specify uid= and gid=
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 9 Dec 2017 09:18:48 +0000 (10:18 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 15 Dec 2017 13:57:07 +0000 (14:57 +0100)
commite09fc88440f399766f7f4fbe8e56b68ba18a131d
treea68728824cb2f1348d10673386ef1ad6eced930b
parent8426bfd397d5aba61c9b5ec79c12864ccf4cfd58
mount: add option to specify uid= and gid=

The kernel needs two numbers, but for the user it's most convenient to provide the
user name and have that resolved to uid and gid.

Right now the primary group of the specified user is always used. That's the most
common case anyway. In the future we can extend the --owner option to allow a group
after a colon.

[I added this before realizing that this will not be enough to be used for user
runtime directory. But this seems useful on its own, so I'm keeping this commit.]
man/systemd-mount.xml
src/mount/mount-tool.c