Re: Need to update a new password in a text file.

17 views
Skip to first unread message

Roshan Munavar

unread,
Jun 23, 2015, 11:32:26 AM6/23/15
to VGLUG
Hello Geek,

I have some 100 of files where i need to update a new passwords according to a different users in different location file in linux server.

​So, Is there any common shell script to update from old password to new password according to a user name.

Thank you for your help on this.

--
With Regards 
Roshan Munavar 


ElectroMech

unread,
Jun 24, 2015, 6:29:47 AM6/24/15
to vg...@googlegroups.com

Yes it is possible.

Can you give some example files.

We might help you.

--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

---
You received this message because you are subscribed to the Google Groups "VGLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vglug+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roshan Munavar

unread,
Jun 24, 2015, 11:32:53 AM6/24/15
to vg...@googlegroups.com
Sure, And Thanks for your reply on this matter.

Below mentioned some file content for your reference.

driverClassName="com.mysql.jdbc4.jdbc.sysdert" name="jdbc/ryr_ined" type="sql.DataSource" url="jdbc:mysql:xyz.com:1025/weare" username="xyz" password="abcd" autoCommit="false" maxActive="20" maxIdle="10" maxWait="20000"" And "Resource name="Tkmool" username="weare" password="abcd" maxActive="20" maxIdle="10" maxWait="-1" " 

ElectroMech

unread,
Jun 29, 2015, 12:16:38 AM6/29/15
to vg...@googlegroups.com

Let me check and update.

ElectroMech

unread,
Jul 1, 2015, 9:00:57 AM7/1/15
to vglug
Hi

Do you want to set default password for all users or respectively user
and password ?

Let me know, thanks and Regards.
--
--
Nilesh Vaghela
(RHCSA RHCE)
ElectroMech Corporation
Redhat Channel Partner and Training Partner
302, New York Plaza, Opp Judges Bunglow, Bodakdev, Ahmedabad
22, 1st Floor, Vardhaman Complex, Subhanpura , Baroda.
www.electromech.info
Reply all
Reply to author
Forward
0 new messages