Hi
Can anyone help on how to add passwords to already created users non-interactively in shell script.
Passwords will be stored in one text file. Script should automatically take passwords from file.
Thanks in Advance
Vishwajit
Hi
Can anyone help on how to add passwords to already created users non-interactively in shell script.
Passwords will be stored in one text file. Script should automatically take passwords from file.
Thanks in Advance
Vishwajit
Hey There,
You can do it if your implementation of passwd accepts input from STDIN. Just run through a while loop, like
while read input
do
passwd code here
done <input
Hope that helps :)
, Mike
Thanks Eggi
Glad to help :)
, Mike
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.