LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-24-2009, 02:17 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Is there a way to change multiple passwords in batch?


Is there a way to change multiple passwords in batch?

IE if i have a file in
username|password
username|password
username|password
username|password
format

Is it possible to use passwd in a shell script to set the passwords?

What would the command to do the password change be, so that it doesn't prompt me to put the password in twice?

TIA
 
Old 09-24-2009, 02:22 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if you just change the pipe to a colon then you can just squirt them straight into the chpasswd tool.
 
Old 09-24-2009, 02:24 PM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Talking

You sir are a guiness!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch Text Extract Multiple Files lixbie Programming 10 07-02-2008 09:56 AM
batch set passwords exodist Linux - Security 3 07-10-2007 04:44 AM
batch editing multiple lines statmobile Programming 8 09-16-2004 08:05 PM
Batch change passwords petertm Linux - Newbie 3 02-06-2003 10:21 AM
Multiple Passwords Stephanie Linux - General 2 08-31-2002 12:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration