|
Home > Archive > Unix Programming > September 2005 > passwd
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Is it possible to edit the passwd command so that when someone changes there
password it changes there password in a .htpasswd or can it only be done
with something more like a cron job?
| |
| Pascal Bourguignon 2005-09-25, 2:54 am |
| "Greg" <NULL> writes:
> Is it possible to edit the passwd command so that when someone changes there
> password it changes there password in a .htpasswd or can it only be done
> with something more like a cron job?
Of course. Everybody does it. (eg Apple edited the passwd command to
update the password in netinfo). Just fetch the sources of the passwd
command and edit and compile.
Now, putting the unix password into a .htpasswd file is not a smart
move, since this file is not encrypted like /etc/passwd or
/etc/shadow.
You could write a htpasswd command to be used instead of the normal passwd.
--
"I have challenged the entire quality assurance team to a Bat-Leth
contest. They will not concern us again."
| |
| SM Ryan 2005-09-25, 7:50 am |
| "Greg" <NULL> wrote:
# Is it possible to edit the passwd command so that when someone changes there
# password it changes there password in a .htpasswd or can it only be done
# with something more like a cron job?
You can replace any executable on the system if you have write
privileges to folder containing it. You might not always have
the source to original executable, but you can hire someone
(hint hint) to write a new C program for you.
--
SM Ryan http://www.rawbw.com/~wyrmwif/
Don't say anything. Especially you.
|
|
|
|
|