Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX password change via VB anyone?

Status
Not open for further replies.

noober

IS-IT--Management
Oct 10, 2003
112
US
Hi all...anyone point me in a direction on how I could write a little app that would allow a user to change their password? Right now, my users passwords never expire and are not hardened in anyway...plus we have some old client/server apps that our users use currently that do force them to enter an account name and password to authenticate to the system but if the users password is expired theseold apps dont handle that! Cant really change the apps, so we figure we will write a little tool just to execute as needed to allow users to change the password. Anyone doing this? Encryption is not a concern but we do want to stay away from allowing users to see a greenscreen/emulation session.
 
No way, sorry.
The passwd command doesn't accept input/output redirection.
This is a security mechanism, perhaps you can find on the web some program which can encrypt the password in the same way the system does. So you can try to fool him .... but I am not sure this will work
 
Forget my previous post.
You should write a "c" program running on the system as the "group administrator user" (you can activate it with rsh), using the newpass subroutine included in libc.a.
For further info on newpass use "man newpass".
If you care to the system security it's better to run these program using ssh instead rsh, so the password used to connect and the new one for the user will be crypted
 
Thanks for trying to help,unfortunately I speak C about as well as I do German...which is not at all! Sounds like what I hoped would be a simple strategy just wont work for me.
 
Dear noober,
I am unuseful with C language too, but it shouldn't very difficult to find someone who write something which run newpass subroutine by passing it an argument from the command line
 
remove all security checks like this:
pwdadm -f NOCHECK username

as long as you know the passwd you are fine, but if your passwords don't expire you should not have to do this.

IBM Certified -- AIX 4.3 Obfuscation
 
Thats where I stand now, but we need to tighten our security at least with passwords that expire and such.
 
Hi all...just an fyi for anyone whoever wants to do this. I downloaded the AIX toolset from bull's site and it includes a C routine called chpass that does exactly what I wanted to do (and includes source!) so thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top