Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: processing system user login

by rvosa (Curate)
on Feb 26, 2007 at 10:21 UTC ( [id://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 (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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found