in reply to Re: processing system user login
in thread processing system user login

Thanks for the reply. On my system, in any case, there is no /etc/shadow - so I guess what I'm looking for is a module that abstracts this a little bit, taking these OS differences into account. Any suggestions?

Replies are listed 'Best First'.
Re^3: processing system user login
by GrandFather (Saint) on Feb 26, 2007 at 10:25 UTC
Re^3: processing system user login
by Anno (Deacon) on Feb 26, 2007 at 10:37 UTC
    Never mind whether it's /etc/shadow or something else, the usual behavior is that getpwnam() retrieves the useless entry from /etc/passwd for non-privileged users and the encryption of the real password for root. Your code is fine. What you need is not a module but sufficient privileges.

    Anno