Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by Skeeve (Parson)
on Jul 30, 2006 at 20:14 UTC ( [id://564654]=note: print w/replies, xml ) Need Help??


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

Solaris uses /etc/shadow for passwwords.

s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re^2: using Unix::PasswdFile to change either the password or the shell of a user
by Anonymous Monk on Sep 08, 2011 at 19:00 UTC
    Right if the change the line $pw = new Unix::PasswdFile "/etc/passwd"; to $pw = new Unix::PasswdFile "/etc/shadow"; it should work.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-25 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found