Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

change or set password interactively prompt in linux

#Eventually, I decided to rebuild my Docker images, so that I change the root password by something I will know.

RUN echo 'root:Docker!' | chpasswd
#or
RUN echo 'Docker!' | passwd --stdin root 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #set #password #interactively #prompt #linux
ADD COMMENT
Topic
Name
2+2 =