Manages Linux users.
$ sparrow plg install user
$ sparrow plg run user --param name=sparrow
$ sparrow plg run user --param name=sparrow --param uid=2500 --param gid=1300
$ sparrow plg run user --param name=sparrow --param managehome=no
$ sparrow plg run user --param name=sparrow --param action=delete
$ sparrow plg run user --param name=sparrow --param action=create --param password=12345
task-run 'create user sparrow', 'user', %(
action => 'create',
name => 'sparrow',
password => '12345',
home_dir => '/opt/sparrow',
uid => 453,
gid => 2300,
groups => '2301,wheel'
);
User name. Obligatory.
Password for user.
New user name. Used in action=create
to change user name.
User ID.
User group ID.
Create or delete home directory. One of two: yes|no
. Default value is yes
.
Use this option when action=create
.
User home directory
List of user's groups. Should be comma separated list of items. For example:
--param groups="developers,admins"
One of two: create|delete
. Default value is create
.
If user already exists and action=create
change user data ( login, gid, etc ).