[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-help
Subject:    [osol-help] Chpasswd Solution?
From:       Simplicissimus () gmail ! com (Matthew Alton)
Date:       2006-03-30 19:06:50
Message-ID: 1058375.1143774407150.JavaMail.suncom () oss1
[Download RAW message or body]

Hiya folks,

  I routinely use a utility called "chpasswd" on AIX and Red Hat Linux.  I sure would \
like to use this utility on Solaris but it does not exist and I can't seem to find a \
reasonable alternative.  I'll write the danged thing if I have to.  Do I have to?  \
Enquiring minds want to know.

  Here the spec.  Syntax: chpasswd [ -e | -h ].  Pretty simple stuff in theory.  The \
"e" switch tells the program that we are passing it an already encrypted password, so \
use it verbatim, otherwise we use crypt(3) on "password."  The "h" switch get you the \
usage blurb.  The program simply reads "username:password" pairs from stdin and \
changes the system password of "username" to "password" of all things.  The glory of \
the thing is that it is scriptable so you can do cute things like "cat foo.txt | \
chpasswd" and no, it won't work with "passwd" because that program makes sure you're \
not piping to it.  I'm truly not interested in PAM and NIS.  If I write this thing, \
it's going to lock and alter /etc/passwd and /etc/shadow and call it a day.  No root \
UID?  Whine & fail.  Frankly, I find PAM somewhat less than comprehensible.

  I've found the "shadow" stuff and the CGIpaf and a few others.  These will provide \
reference material but not much else.  Is there a true chpasswd for Solaris?

  I'm going to write the thing, amn't I?  Well, when I do, I'll post it here.  \
That'll do some good, right?  
 
This message posted from opensolaris.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic