New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

sysuser

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sysuser

Simple wrapper for adding and removing users for unix based systems. Only tested on CentOS 6.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Installation

npm install sysuser

What does it do?

sysUser is a simple wrapper for unix commands such as useradd, userdel, & usermod to make changes to system users. In order for this to work the calling program MUST be running as root or have permissions to the user commands in command line. This NPM module is still in early development and has only been tested on the listed operating systems:

  • CentOS 6

Coding Examples

var sysUser = require('sysuser')();

// create user
sysUser.add('appUser',['-d','/home/custom/HomeDir'],function(err,uid){
	if(err){
		console.log('ERROR',err);
	}else{
		console.log('removed');
	}
});

FAQs

Package last updated on 14 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts