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

Shell Script on Debian



Hello,
The  "passwd" command expects to read the new password only from the console, How to it read the new password only from a file.  I create a file (Ex: test file )

test file
123456
123456
After, I use: "passwd < test" (shell on Debian is sh)
But it always error: "Enter new UNIX password: Retype new UNIX password:  Sorry, passwords do not match"
Please, could you help me.
Best regards,
Phuong

Reply to: