Operating System - HP-UX
1753882 Members
7328 Online
108809 Solutions
New Discussion

Re: Changing user's password programmatically

 
SOLVED
Go to solution
Herve BRANGIER
Respected Contributor

Re: Changing user's password programmatically


Another information :

return of crypt () is ALWAYS 13 caracters
you can crypt 1 to 8 caracters and the result
is 2 + 11 caracters (salt + encrypted form).
So you have exactly 13 caracters in pw_passwd.

Herv?



Ahmed Atef
Occasional Advisor

Re: Changing user's password programmatically

Herv?

Yea, actually my program is not in the final state ... i know i have to remove the old entry before updating by the new one .. also i need to check for the /etc/passwd file after updating to check whether there is errors or not ....

thank you again for ur help :-)

Ahmed