LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   useradd -p problem (https://www.linuxquestions.org/questions/linux-security-4/useradd-p-problem-622738/)

john83reuben 02-21-2008 05:54 AM

useradd -p problem
 
HI guys. I am JOhn

I have tried this

useradd -p mypassword john

mypassword here is the encrypted password. I want to know how to create user with useradd command
I know i can useradd john, then passwd. But HOw about this useradd -p, how to solve this problem.

I need to do this because I want to create a useradd script, which ask for username and password and an account for teh user will be created.


Please help. I am confuse :(

rutgerw 02-21-2008 06:01 AM

You don't have to write such a script, as there are numerous script like the one you're trying to write out there already. E.g. adduser (instead of useradd)

billymayday 02-21-2008 06:06 AM

See my post on your other (more or less duplicate thread) on the use of passwd --stdin

win32sux 02-21-2008 06:35 AM

This isn't a security question (at least not directly), so it doesn't belong in this forum. Normally I'd move it, but because you've got a perfectly good thread going in which to discuss this issue, I'm closing this thread.


All times are GMT -5. The time now is 09:24 AM.