/usr/bin/passwd offers a "safe way" for root to edit /etc/passwd (or shadow). If setuid it allows regular users to change passwd without asking root to do changes for them.

gnupasswd - gnu change user password
gnugpasswd - gnu change group password

gnupasswd(1) has a goal to work with older login.c/linux and some newer too, also "getpwent" (any glibc). or help convert.

gnupassd does pass only: leaves all else alone (compat). small, simpler for single admin / small linux bases.

For example: it can make plain /etc/passwd plain text password file (still) or use shadow - (login.c may do both).

A goal is to be old linux and no "depends problems" (ie, some required pam selinux audit kerb (+nis remove hacks) "to work as intended". These can contact remote computers during login if misconfigured and are complicated to configure (so that one knows what is allowed or not completely).

gnupasswd has none of these (gnu has NIS, off by default)

Features

  • small simple to install, easy to read / hack
  • careful coding - checks for errors always
  • uses signals to prevent early quit
  • uses glibc (set/end)pwent and file locking
  • checks file permissions
  • has internal pwd.h line parser if opted to use
  • does not phone home, has no networking code
  • supports SHADOW or not, crypt or not
  • (see login.c that is altered to take old/new /etc/passwd)
  • follows MAC (Mandatory Access Control)
  • a few output options to help root convert or test
  • it's old passwd(1) but new, but not too new
  • it's fresh start code, not re-hacked code
  • code uses long names, no mystery variables

Project Activity

See All Activity >

License

GNU General Public License version 2.0 (GPLv2)

Follow gnupasswd

gnupasswd Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of gnupasswd!

Additional Project Details

Operating Systems

Linux, BSD

Intended Audience

Advanced End Users, System Administrators

User Interface

Console/Terminal, Command-line

Programming Language

C

Database Environment

Other API, Flat-file

Related Categories

C Systems Administration Software, C NIS Software

Registered

2015-08-12