[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] More about 300 users + passwords



Then this should help:
[riblack latr passtest]$ cat data.txt
username1, Full Name 1, pass1
username2, Full Name 2, pass2
[riblack latr passtest]$ cat data.csv | while IFS=',' read USER FULL PASS; do echo $USER:$PASS | sed -e 's/ //g'; done
username1:pass1
username2:pass2


--RB

Chris Hobbs wrote:

Trond Mæhlum wrote:

Is there a command or program for using that csv file to /change/ the passwords for all 300 users?


man chpasswd

A terrific tool for changing passwords in bulk. You will need to modify your csv a bit, since chpasswd expects user name password pairs in the format:

username:password






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]