Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re^2: processing system user login

by rvosa (Curate)
on Feb 26, 2007 at 10:21 UTC ( #602090=note: print w/replies, xml ) Need Help??

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 (Sage) 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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://602090]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2020-12-06 02:11 GMT
Find Nodes?
    Voting Booth?
    How often do you use taint mode?

    Results (65 votes). Check out past polls.