]> git.ipfire.org Git - thirdparty/systemd.git/commit
man: User=, Group= *never* work for mount units (#7602)
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Tue, 19 Dec 2017 20:22:05 +0000 (20:22 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Dec 2017 20:22:05 +0000 (21:22 +0100)
commit5e0aff564c86838e08c4b1bdd8df182d233a36b8
tree767f77bfa52e497d7e602f8ff0de7632ad7a0ca4
parent07fbf8807c7555981c9449151bdc51ba867cde1e
man: User=, Group= *never* work for mount units (#7602)

Old text:

> Note that the User= and
> Group= options are not particularly useful for mount units specifying a
> "Type=" option or using configuration not specified in /etc/fstab;
> mount(8) will refuse options that are not listed in /etc/fstab if it is
> not run as UID 0.

However I recently learnt the following:

> The mount program does not read the /etc/fstab file if both device
> and dir are specified.

Therefore, if both device and dir are specified, the `user` or `users`
options in `fstab` will not have any effect.  Run as a normal user,
you will always see

    mount: only root can do that

Fix the explanation in the man page.

Also make sure to markup User= and Group= with <varname>.
man/systemd.mount.xml