Search plugin: Or browse by category:

user summary

Plugin Name: user
Version: 0.2.1
Author: @melezhik
Realease Date: 2017-07-19 12:24:39
Short Description: Manages Linux users
Category: sparrowdo
Plugin web page: https://github.com/melezhik/user
Download link: user-v0.002001.tar.gz
Latest version link: https://sparrowhub.org/info/user

# 0.2.1

`Change password` feature added - https://github.com/melezhik/user/pull/2 , thanks to @Spigell

# 0.2.0

Add support for Alpine Linux

user documentation

user doc

SYNOPSIS

Manages Linux users.

INSTALL

$ sparrow plg install user

USAGE

manually

$ 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

via sparrowdo

task-run 'create user sparrow', 'user', %(
  action   => 'create',
  name     => 'sparrow',
  password => '12345',
  home_dir => '/opt/sparrow',
  uid      => 453,
  gid      => 2300,
  groups   => '2301,wheel'
);

Parameters

name

User name. Obligatory.

password

Password for user.

new_login

New user name. Used in action=create to change user name.

uid

User ID.

gid

User group ID.

managehome

Create or delete home directory. One of two: yes|no. Default value is yes.

Use this option when action=create.

home_dir

User home directory

groups

List of user's groups. Should be comma separated list of items. For example:

--param groups="developers,admins"

action

One of two: create|delete. Default value is create.

If user already exists and action=create change user data ( login, gid, etc ).

Maintainer

Alexey Melezhik