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 _______________________________________________ opensolaris-help mailing list [email protected]
