unix-user

0.1.0 • Public • Published

Unix User Utilities

$ npm install unix-user

A small set of utilities for managing users in unix systems.

Example:

var user = require('unix-user');
 
user.exists('nick', function(exists) {
    if (!exists) {
        user.create('nick', 'pass', function(err) {
            if (err) {
                return console.log('Error creating user');
            }
            console.log('User created');
        });
    } else {
        user.passwd('nick', 'pass', function(err) {
            if (err) {
                return console.log('Error setting user password');
            }
            console.log('User password updated');
        });
    }
});
 

/unix-user/

    Package Sidebar

    Install

    npm i unix-user

    Weekly Downloads

    2

    Version

    0.1.0

    License

    ISC

    Last publish

    Collaborators

    • wesleytodd