Users script
hi guys
I have pretty simple basic script well 2 scripts to create users it basically reads an usersinfo file with this structure FirstName and Last Names - CompanyName LoginID UID Code:
Charlie Mareuz Yander - CompanyName logind 600 Code:
#!/bin/bash so for 4 users I have to use passwd loginID 4 times I need a way to add to my script how to read passwords in that same file (usersinfo) and script that instead of doing manually I've tried but since the password is asked twice I don't know how to script that would be like Code:
#!/bin/bash thanks a lot |
passwd(1) offers the option --stdin to read the password from stdin:
Code:
echo $password | passwd --stdin $l6 |
Quote:
thanks a lot that's all I needed :hattip: |
All times are GMT -5. The time now is 03:11 AM. |