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
Fix documentation for unprivileged mode with pre-existing user and group
- Add note explaining --password is only required on Windows
- Add tabs to display separate examples for Windows vs Linux/macOS
- Correct Linux/macOS examples to use --user/--group without --password
- Add sudo prefix to Linux/macOS commands
- Use .exe extension for Windows examples
Fixes elastic/docs-content#5298
Co-authored-by: vishaangelova <91186315+vishaangelova@users.noreply.github.com>
Copy file name to clipboardExpand all lines: reference/fleet/elastic-agent-unprivileged.md
+75-7Lines changed: 75 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -188,24 +188,92 @@ This functionality is in technical preview and may be changed or removed in a fu
188
188
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
-
To install {{agent}} in `unprivileged` mode as a specific user, add the `--user` and `--password` parameters to the install command:
191
+
::::{note}
192
+
The `--password` parameter is only required on Windows. On Linux and macOS, specifying the `--user` and/or `--group` parameters is sufficient.
193
+
::::
194
+
195
+
To install {{agent}} in `unprivileged` mode as a specific user or group, use the following commands:
Alternatively, if you have {{agent}} already installed with administrative privileges, you can change the agent to use `unprivileged` mode and to run as a specific user or in a specific group. For example:
Alternatively, if you have {{agent}} already installed with administrative privileges, you can change the agent to use `unprivileged` mode and to run as a specific user or in a specific group.
0 commit comments