Skip to content

Commit f1f0c9e

Browse files
Fix documentation for unprivileged mode with pre-existing user and group
Co-authored-by: vishaangelova <[email protected]>
1 parent 8efec3b commit f1f0c9e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

reference/fleet/elastic-agent-unprivileged.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ This functionality is in technical preview and may be changed or removed in a fu
251251
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.
252252
253253
::::{note}
254-
The `--password` parameter is only required on Windows.
254+
On Windows, the `--password parameter` is required when specifying a custom user account.
255255
256256
On Linux and macOS, the `--user` and `--group` parameters are optional:
257257
* If you omit `--user`, {{agent}} uses (or creates) the default unprivileged user (`elastic-agent-user`).
@@ -289,8 +289,6 @@ sudo elastic-agent install --unprivileged --user="username" --group="groupname"
289289
::::{tab-item} Windows
290290
:sync: windows
291291
292-
On Windows, the `--password` parameter is required when specifying a custom user account.
293-
294292
To install as a specific user:
295293
296294
```shell
@@ -306,7 +304,7 @@ elastic-agent install --unprivileged --group="my.domain\groupname"
306304
To install with both a specific user and group:
307305
308306
```shell
309-
elastic-agent install --unprivileged --user="my.domain\username" --group="my.domain\groupname" --password="mypassword"
307+
elastic-agent install --unprivileged --user="my.domain\username" --password="mypassword" --group="my.domain\groupname"
310308
```
311309
312310
::::
@@ -338,8 +336,6 @@ sudo elastic-agent unprivileged --group="groupname"
338336
::::{tab-item} Windows
339337
:sync: windows
340338
341-
On Windows, the `--password` parameter is required when specifying a custom user account.
342-
343339
To change to a specific user:
344340
345341
```shell

0 commit comments

Comments
 (0)