Want to create 25 Users and forcing the users to change passwords
for i in 1 2 3 4 5; do useradd user$i; echo user$i | passwd --stdin user$i; done
I found this while googling i just want to create some users and allowing them to change their passwords after their first login using script |
Quote:
Read the man page on the useradd command, read up on how to set a default on password expiration, and (again) read one of the MANY bash scripting tutorials. |
Not the answer i was expecting
|
Quote:
You have the tools to do what you're after; whether you actually USE those tools or not isn't something we can help you with. Look at your other threads, where you ask homework questions: http://www.linuxquestions.org/questi...ud-4175515055/ http://www.linuxquestions.org/questi...rs-4175515947/ http://www.linuxquestions.org/questi...on-4175510578/ http://www.linuxquestions.org/questi...ge-4175513826/ http://www.linuxquestions.org/questi...th-4175512351/ |
All times are GMT -5. The time now is 08:13 PM. |