Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: using Unix::PasswdFile to change either the password or the shell of a user

by Zaxo (Archbishop)
on Jul 30, 2006 at 02:02 UTC ( [id://564579]=note: print w/replies, xml ) Need Help??


in reply to using Unix::PasswdFile to change either the password or the shell of a user

The builtins setpwent, setgrent, and friends know about shadow files and can deal with them. No module is needed.

After Compline,
Zaxo

  • Comment on Re: using Unix::PasswdFile to change either the password or the shell of a user

Replies are listed 'Best First'.
Re^2: using Unix::PasswdFile to change either the password or the shell of a user
by sgifford (Prior) on Jul 30, 2006 at 16:55 UTC
    Are you sure? That's not what the documentation says they do:
    setpwent: These routines perform the same functions as their counterparts in the system library.
    And getpwent(3) says:
    The setpwent() function rewinds the file pointer to the beginning of the /etc/passwd file.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-25 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found