You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clarify that --user/--group are optional on Linux/macOS
- Update note to explain --user and --group are optional on Linux/macOS
- Clarify that if --user is omitted, default elastic-agent-user is used
- Clarify that if only --group is specified, agent runs under default user
- Update example text in both install and unprivileged command tabs
Co-authored-by: vishaangelova <[email protected]>
Copy file name to clipboardExpand all lines: reference/fleet/elastic-agent-unprivileged.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,10 @@ This functionality is in technical preview and may be changed or removed in a fu
189
189
In certain cases you may want to install {{agent}} in `unprivileged` mode, with the agent running as a pre-existing user or as part of a pre-existing group. For example, on a Windows system you may have a service account in Active Directory and you’d like {{agent}} to run under that account.
190
190
191
191
::::{note}
192
-
The `--password` parameter is only required on Windows. On Linux and macOS, specifying the `--user` and/or `--group` parameters is sufficient.
192
+
The `--password` parameter is only required on Windows. On Linux and macOS, the `--user` and `--group` parameters are optional:
193
+
194
+
* If you omit `--user`, {{agent}} uses (or creates) the default unprivileged user (`elastic-agent-user`).
195
+
* If you specify only `--group`, the agent runs unprivileged under its default user but with the requested group.
193
196
::::
194
197
195
198
To install {{agent}} in `unprivileged` mode as a specific user or group, use the following commands:
@@ -198,19 +201,19 @@ To install {{agent}} in `unprivileged` mode as a specific user or group, use the
198
201
199
202
::::{tab-item} Linux/macOS
200
203
201
-
To install as a specific user:
204
+
To install with a specific user (optional—if omitted, the default `elastic-agent-user` is used):
0 commit comments