user
Description
manage a user
Parameters
username
(required): the user namepassword
(required): the encrypted passwordnote: use
openssl passwd -salt <salt> -1 <plaintext>
to generate the password hashfullname
(optional): the user's full nameuid
(optional): the user idgid
(optional): the group idhome
(optional): the user's home directory, by default/home/$username
note: if the directory already exists, the uid and gid of the directory will be set to this user; otherwise, the directory (and its parent directories) will be created, with the uid and gid
system-account
(optional): whether to create a system account or not (seeuseradd(8)
), by default:false
no-login
(optional): whether to allow user to login or not, by defaultfalse
groups
(optional): a list of groups of the usernote: if pass in an empty list, all groups of the user will be removed except the defaut one