Ask a Question related to UNIX Programming, Design and Development.
-
Tushar Sinha #1
change password
How can I change the password of a user from a "C" program
Tushar Sinha Guest
-
How to change password
I have inherited a contribute site from a former employee. He has not given us the administrator password to the site. How do I change it? ... -
How do you change the password?
Hello, I am having trouble logging into the administrator account. I'm new at this program and I'm not sure how to open the program up at all! I've... -
Can't change password?
Heya; I have PostGreSQL 7.3.4 on Mandrake Linux 9.2. For some reason Webmin, when I tell it to change the password of a pgsql user, acts like it's... -
NIS password change forcing
Is it possible to implement password expiration with NIS? Or does anyone have some other suggestions for forcing the users to change passwords.... -
netadmin & change password
Hello, I have been reading about the change password function in NetAdmin (Win32). Now it says I need to input the old password. What is I am in... -
Kalle Olavi Niemitalo #2
Re: change password
[email]tusharsinha@adityabirla.com[/email] (Tushar Sinha) writes:
I believe the usual solution is to run the "passwd" program and> How can I change the password of a user from a "C" program
feed the correct data to it via a pipe or pty. See the "passwd
chat" parameter of Samba, for example.
If your program runs with root permissions, it can alter
/etc/passwd or /etc/shadow directly; but then you need to
carefully lock the file from other programs, and you won't
know if the new password also has to be saved in other places,
such as Samba or NIS.
With Linux-PAM, the pam_chauthtok function may be able to change
the password. I haven't tried it myself.
Kalle Olavi Niemitalo Guest



Reply With Quote

