Expand description
Container user management operations
This module provides functions to manage Linux system users inside the running Docker container. opencode authenticates against PAM, so opencode-cloud must manage system users in the container.
Security note: Passwords are never passed as command arguments.
Instead, we use chpasswd which reads from stdin.
Structs§
- User
Info - Information about a container user
Functions§
- create_
user - Create a new user in the container
- delete_
user - Delete a user from the container
- list_
users - List users in the container with home directories
- lock_
user - Lock a user account (disable password authentication)
- set_
user_ password - Set or change a user’s password
- unlock_
user - Unlock a user account (re-enable password authentication)
- user_
exists - Check if a user exists in the container