Skip to content

Commit 687f9b3

Browse files
poetteringjamacku
authored andcommitted
man: be even clearer that tmpfiles user/group/mode are applied on existing inodes
I think it was clear already, but let's be even clearer. Fixes: #29774 (cherry picked from commit 3cb938bd12b3603984b982e9b73e4cabd4a608e3) Resolves: RHEL-77145
1 parent 8c2ed07 commit 687f9b3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

man/tmpfiles.d.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,11 @@ r! /tmp/.X[0-9]*-lock</programlisting>
500500
sticky/SUID/SGID bit is removed unless applied to a
501501
directory. This functionality is particularly useful in
502502
conjunction with <varname>Z</varname>.</para>
503+
504+
<para>By default the access mode of listed inodes is set to the specified mode regardless if it is
505+
created anew, or already existed. Optionally, if prefixed with <literal>:</literal>, the configured
506+
access mode is only applied when creating new inodes, and if the inode the line refers to
507+
already exists, its access mode is left in place unmodified.</para>
503508
</refsect2>
504509

505510
<refsect2>
@@ -515,6 +520,11 @@ r! /tmp/.X[0-9]*-lock</programlisting>
515520
<varname>r</varname>, <varname>R</varname>,
516521
<varname>L</varname>, <varname>t</varname>, and
517522
<varname>a</varname> lines.</para>
523+
524+
<para>By default the ownership of listed inodes is set to the specified user/group regardless if it is
525+
created anew, or already existed. Optionally, if prefixed with <literal>:</literal>, the configured
526+
user/group information is only applied when creating new inodes, and if the inode the line refers to
527+
already exists, its user/group is left in place unmodified.</para>
518528
</refsect2>
519529

520530
<refsect2>

0 commit comments

Comments
 (0)