Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I want to create the users and set the passwords to 'eW4hNXNIc' for all new users.I don't want any prompts or confirmation when creating the users.
Is there a way to achieve this in REDHAT LINUX ? Can some one help?
The below command works fine in my Dedian & Ubuntu based Operating system
echo "username:password" | chpasswd
I've seen cases where that kind of thing fails due to stdin not being a tty (picky program reading for the password). In such cases I've usually found that the "script" program (and a delay in sending in the password) works. The "expect" program (or "pexpect" with a Python script) can also help.