Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash create user with encrypted password

useradd -d /home/dummy -g idiots -m -p $(read -sp Password: pw ; echo $pw | openssl passwd -1 -stdin) dummy
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #bash #create #user #encrypted #password
ADD COMMENT
Topic
Name
8+1 =