Local Users
- Canonical BootStack Charmers
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 27 | 07 Jun 2024 | |
latest/stable | 18 | 28 Apr 2023 | |
latest/candidate | 27 | 06 May 2024 | |
latest/candidate | 18 | 06 Apr 2023 | |
latest/edge | 68 | 11 Dec 2024 | |
latest/edge | 67 | 11 Dec 2024 | |
latest/edge | 64 | 08 Nov 2024 | |
latest/edge | 62 | 08 Nov 2024 | |
latest/edge | 61 | 08 Nov 2024 | |
latest/edge | 59 | 08 Nov 2024 | |
latest/edge | 19 | 03 May 2023 | |
latest/edge | 6 | 14 Mar 2022 |
juju deploy local-users
Deploy universal operators easily with Juju, the Universal Operator Lifecycle Manager.
Platform:
-
allow-existing-users | boolean
When set to False the charm will enter 'blocked' state when user exists in 'users' config and in the system, but not in the charm managed group. Setting to True disables that protection and allows for pre-existing users to be added to the charm managed group.
-
backup-path | string
Default: /var/lib/misc/charm-local-users/backup
Location on the unit that will be used for storing backups of home directories of removed users.
-
group | string
Default: charm-managed
Group name for users managed by the charm.
-
ssh-authorized-keys | string
Default: $HOME/.ssh/authorized_keys
The file to write the SSH public keys to. This option supports the usage of variables "$USER", "$HOME" and "$UID" in the path string. They will be expanded to the username, home directory and the user id of each user.
-
sudoers | string
Custom /etc/sudoers.d file. File name is 70-local-users-charm Visudo is used to check for syntax errors and print them in the charm status and more verbose in juju debug logs.
Example: Cmnd_Alias ALLOWED_CMDS = /usr/sbin/dmidecode,
/usr/sbin/hwinfo,
/sbin/ifconfig,
/bin/psmyuser ALL = (ALL) NOPASSWD: ALLOWED_CMDS
-
users | string
List of (username; Gecos Name; SSH pub key) tuples. Fields must be separated by semicolons ';'. Multiple ssh keys can be provided per user by adding multiple lines with the same username and gecos. SSH keys can also be retrieved from launchpad by using the launchpad username prepended with 'lp:'
Example: alice;Alice;<ssh_pub_key> bob;Bob;<ssh_pub_key> alice;Alice;lp:alice bob;Bob;lp:bob monitoring;Remote Monitoring;<ssh_pub_key1> monitoring;Remote Monitoring;<ssh_pub_key2> monitoring;Remote Monitoring;<ssh_pub_key3>