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