Skip to content

Node-Ops/unix-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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');
		});
	}
});

About

Utilities for managing unix users

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published