https://github.com/melezhik/user
Manages a linux user
https://github.com/melezhik/user
linux linux-users users
Last synced: 2 months ago
JSON representation
Manages a linux user
- Host: GitHub
- URL: https://github.com/melezhik/user
- Owner: melezhik
- Created: 2016-06-23T14:08:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-19T09:24:55.000Z (almost 8 years ago)
- Last Synced: 2025-02-15T14:14:50.015Z (4 months ago)
- Topics: linux, linux-users, users
- Language: Shell
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
Awesome Lists containing this project
README
# 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.
## uidUser 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](mailto:[email protected])