Expand description
User Manager for start-command
Provides utilities for creating isolated users with the same group memberships as the current user. This enables true user isolation while preserving access to sudo, docker, and other privileged groups.
Structs§
- Create
Isolated User Options - Options for creating an isolated user
- Create
User Options - Options for creating a user
- Delete
User Options - Options for deleting a user
- User
Info - User information
- User
Operation Result - Result of a user operation
Functions§
- create_
isolated_ user - Create an isolated user with the same groups as the current user
- create_
user - Create a new user with specified groups Requires sudo access
- delete_
user - Delete a user and optionally their home directory Requires sudo access
- generate_
isolated_ username - Generate a unique username for isolation
- get_
current_ user - Get the current user’s username
- get_
current_ user_ groups - Get the groups the current user belongs to
- get_
user_ info - Get information about a user
- group_
exists - Check if a group exists on the system
- has_
sudo_ access - Check if the current process has sudo access without password
- user_
exists - Check if a user exists on the system