Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 add a user with its password without the need to prompt data like the password.
I've tried with this command:
useradd prometeo -d /home/prometeo -g test -m -p pippo
but the -p option ask for a password generated in the crypt-way. So I've tried passing the output of /usr/bin/mkpasswd pippo to useradd prometeo -d /home/prometeo -g test -m -p using a pipe and < but I can't find a way to make it work! Is it possible or does I need to use a script?
Someone have some suggestions?