do_pwchange() is broken on SCO UnixWare 7

Darren Tucker dtucker at zip.com.au
Tue Dec 7 11:07:14 EST 2004


Tim Rice wrote:

> On Sat, 4 Dec 2004, Darren Tucker wrote:
>>         execl(PASSWD_PROGRAM_PATH, "passwd", (char *)NULL);
>                                            ^^^^^^^^^^^^^^^^^^^^^^
> Wouldn't that be equivilent to
> $ passwd ""

No, it's just the null termination that execl requires.  The cast is to 
keep the compiler quiet.

> UnixWare does complain anout this.
> ...
> UX:passwd: ERROR: Unknown logname:

Perhaps it's complaining about something else?  Missing $LOGNAME or 
something?

> Running passwd with no args works and "passwd user_name" works too.

BTW changing all users' passwords with "passwd user_name" as root can 
have other unpleasant side effects (eg on AIX it will set the ADMCHG 
flag which will force the user to change it again next login).

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list