|
Re: Chpasswd Solution?: msg#00004os.solaris.opensolaris.help
* Matthew Alton <Simplicissimus-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> [2006-03-30 18:06]: > 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? As far as I know, we don't have chpasswd in OpenSolaris. The PAM/passwd folks will definitely know--they will be listening in the Security community, if they aren't watching here. You can also submit a bug to the bug database, so that the whole community. See http://bugs.opensolaris.org (You must be a registered user to submit a bug.) - Stephen -- Stephen Hahn, PhD Solaris Kernel Development, Sun Microsystems stephen.hahn-xsfywfwIY+M@xxxxxxxxxxxxxxxx http://blogs.sun.com/sch/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: libdlpi - 64-bit version: 00004, sagun shakya - Sun Microsystems - Burlington United States |
|---|---|
| Next by Date: | any way to get the vesa driver to display more than 1024x768?: 00004, alessioc |
| Previous by Thread: | Re: libdlpi - 64-bit versioni: 00004, sagun shakya - Sun Microsystems - Burlington United States |
| Next by Thread: | any way to get the vesa driver to display more than 1024x768?: 00004, alessioc |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | Mail Home | sitemap | FAQ | advertise |