Skip to content

Commit

Permalink
adding a reference to to the host user guide (#46765)
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktate authored and mvbrock committed Sep 19, 2024
1 parent a5ec9d0 commit c76965e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ spec:
options:
# Allow automatic creation of users.
create_host_user_mode: keep
create_host_user_default_shell: /bin/bash
allow:
logins: [ "nginxrestarter" ]
# List of host groups the created user will be added to. Any that don't already exist are created.
Expand All @@ -103,7 +104,9 @@ The `create_host_user_mode` field enables host user creation when the value is
the `app:nginx` label, the Teleport SSH Service creates a host user, adds it to
the groups listed in `host_groups`, and gives it the sudoer permissions
specified in the `host_sudoers` field. In this case, the new user receives
permission to restart the Nginx service as root.
permission to restart the Nginx service as root. The default shell for a created
user can be configured with `create_host_user_default_shell`. Otherwise the
host's default shell will be used.

{/*TODO (ptgott): We should move the information below into a reference guide*/}
<Details title="Customizing host user creation">
Expand Down

0 comments on commit c76965e

Please sign in to comment.