Skip to main content

Crate users

Crate users 

Source

Structs§

GroupIdentifier
Manager
UserIdentifier

Enums§

Error

Constants§

ADMINISTRATOR_GROUP_NAME
Name of the group whose members administer the device, for example by running a command as another user. Seeded images create it with the administrator account as its member.
MAXIMUM_USER_NAME_LENGTH
Longest accepted user name, in bytes (the same limit as Linux useradd).
ROOT_HOME
Home of the built-in root account, which has no account record.

Functions§

is_valid_user_home
Whether home is an acceptable recorded home: a single entry directly below /users, such as /users/alice or the /users/1000 of an older account. The entry may not be . or .., nor contain /, NUL or control characters, and is at most 255 bytes long.
is_valid_user_name
Whether name may be given to a new or renamed account.

Type Aliases§

GroupIdentifierInner
Result
UserIdentifierInner