diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-12-09 10:18:48 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-12-15 14:57:07 +0100 |
commit | e09fc88440f399766f7f4fbe8e56b68ba18a131d (patch) | |
tree | a68728824cb2f1348d10673386ef1ad6eced930b /man/systemd-mount.xml | |
parent | 8426bfd397d5aba61c9b5ec79c12864ccf4cfd58 (diff) | |
download | systemd-e09fc88440f399766f7f4fbe8e56b68ba18a131d.tar.gz |
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.]
Diffstat (limited to 'man/systemd-mount.xml')
-rw-r--r-- | man/systemd-mount.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/man/systemd-mount.xml b/man/systemd-mount.xml index 87bc2b36eb..76ea0550d7 100644 --- a/man/systemd-mount.xml +++ b/man/systemd-mount.xml @@ -160,6 +160,14 @@ </varlistentry> <varlistentry> + <term><option>--owner=<replaceable>USER</replaceable></option></term> + + <listitem><para>Let the specified user <replaceable>USER</replaceable> own the mounted file system. + This is done by appending <option>uid=</option> and <option>gid=</option> options to the list + of mount options. Only certain file systems support this option.</para></listitem> + </varlistentry> + + <varlistentry> <term><option>--fsck=</option></term> <listitem><para>Takes a boolean argument, defaults to on. Controls whether to run a file system check |