2.0.0 • Published 6 years ago

passwd-linux v2.0.0

Weekly downloads
87
License
MIT
Repository
github
Last release
6 years ago

passwd-linux

Node.js module for checking and changing Linux user and password

Installation

$  npm install passwd-linux

Features

* Check if user exist.
* Check if password is correct.
* Change password if user exist.

Usage

Check if user exist

passwd.userExist(username, function (err, response) {
    if (err) {
        console.log(err);
    } else {
        if (response) {
            console.log('User exist');
        } else {
            console.log('Unknown user');

        }
    }
});

Check if password is correct

passwd.checkPassword(username, password, function (err, response) {
    if (err) {
        console.log(err);
    } else {
        if (response) {
            console.log('Password correct');
        } else {
            console.log('Password is not correct');
        }
    }
});

Change password if user exist

passwd.changePassword(username, password, function (err, response) {
    if (err) {
        console.log(err);
    } else {
        if (response) {
            console.log('Password successfully changed');
        } else {
            console.log('Error changing password');
        }
    }
}, 6);

Release History

VersionStatusFunctionality
1.0.0releasedInitial release
1.0.1releasedBug fixes
1.0.2releasedBug fixes
1.0.3releasedBug fixes
1.0.4releasedBug fixes
1.1.0releasedAdded checkUser and changePassNV methods
1.2.0releasedAdded checkPassMD5 method
1.2.1releasedBug fixes for: changePassNV and checkUser
1.2.2releasedBug fixes for: changePass
1.2.3releasedAdded support for MD5 to the change password method
1.2.4releasedBug fixes
1.2.5releasedBug fixes
1.3.0releasedCombine checkPassMD5 and checkPassSHA512 to single method: checkPass
1.3.1releasedBug fixes: Now changePass and checkPass return unknownUser
2.0.0releasedRewrite all methods to satisfy 2 open issues

Todo

  • Change method checkPassMD5 from OpenSSL check (using ("child_process").exec) to javascript.

License

MIT

2.0.0

6 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.5

9 years ago

1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago