Skip to content

Commit db5613b

Browse files
committed
Include example
1 parent 0d21111 commit db5613b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/static-subid.conf.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,17 @@ To disable shadow-utils auto-assignment, set *SUB_UID_COUNT* and *SUB_GID_COUNT*
162162

163163
Keys read from _/etc/login.defs_ match keys read from the *static-subid* configs. Unknown keys are ignored.
164164

165+
== EXCLUDING SPECIFIC USERS
166+
167+
You cannot mask a user directly. What you can do is set *SKIP_IF_EXISTS* to true and perform:
168+
169+
....
170+
usermod --add-subuid $(id -u ${MASKUSER})-$(id -u ${MASKUSER}) ${MASKUSER}
171+
usermod --add-subgid $(id -u ${MASKUSER})-$(id -u ${MASKUSER}) ${MASKUSER}
172+
....
173+
174+
This will setup a single subuid and for the user which matches their existing user id.
175+
165176
== EXAMPLES
166177

167178
=== Basic Configuration

0 commit comments

Comments
 (0)