Using useradd abc --password password
WHAT exactly is your request?
I want one command in which I should be able to create a new user with password assigned to it (combination of useradd and passwd command)
One I have tried is
useradd abc --password password123
but it's not working
What is not working? man useradd
:
It could be a help:
useradd test;echo <your_password> |chpasswd test
1 Like
thanks nixhead..