Shadow password functions

Hello all,

I’m trying to get sudo working under QNX 4.25/Watcom 10.6,
and have discovered what appears to be some pretty essential
missing functions! Basically, the functions listed in
/usr/include/shadow.h (in particular, getspnam()) don’t seem
to be defined in any library that I can find!

This makes it impossible to get the encrypted password into
the sudo program, and therefore impossible to authenticate
with crypt().

I know I’m missing something; where are the functions I’m
looking for?

corlette@huarp.harvard.edu wrote:
: Hello all,

: I’m trying to get sudo working under QNX 4.25/Watcom 10.6,
: and have discovered what appears to be some pretty essential
: missing functions! Basically, the functions listed in
: /usr/include/shadow.h (in particular, getspnam()) don’t seem
: to be defined in any library that I can find!

: This makes it impossible to get the encrypted password into
: the sudo program, and therefore impossible to authenticate
: with crypt().

: I know I’m missing something; where are the functions I’m
: looking for?

Look on qnx.com and you will find that sudo is already ported for
qnx4. I ported 1.5.6p3 a year or two ago (I am not sure if there
are newer versions). If you search for sudo in the contributed
software, you will find it. The readme mentions the need for
login3r.lib which is where the functions you need are located.

ftp://ftp.qnx.com/usr/free/qnx4/os/utils/misc/sudo.tgz

Hope it helps,
Rick…


Rick Duff Internet: rick@astra.mb.ca
Astra Network QUICS: rgduff
QNX Consulting and Custom Programming URL: http://www.astra.mb.ca
+1 (204) 987-7475 Fax: +1 (204) 987-7479