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

Re^4: replacing password in a file

by manasmita_nayak (Initiate)
on May 14, 2015 at 12:34 UTC ( [id://1126647]=note: print w/replies, xml ) Need Help??


in reply to Re^3: replacing password in a file
in thread replacing password in a file

user1 { pwd=hello group=accounts } user2 { pwd=godknows group=admin } i want to change the pasword of a particular user. I used grep function to get the pasword line no. after tht i m using awk command to change the pasword. But how can i used it I cant understand.plz help me ,how can i update tht pasword.

Replies are listed 'Best First'.
Re^5: replacing password in a file
by GotToBTru (Prior) on May 14, 2015 at 13:21 UTC

    1. Search here or in here for examples of how to replace text in a file.

    2. Find out what method has been used to encrypt the passwords in the first place.

    3. Put those together in a script, and if it doesn't work, share it with us and we can help.

    I'm not interested in writing programs for you (unless you are paying). I delight in helping people learn to program in Perl. The same is true for most of the people here.

    Dum Spiro Spero

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-23 09:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found