從標準輸入 管道讀入新的密碼,不要交互過程修改linux系統用戶密碼

<pre name="code" class="sql">--stdin
              This option is used to indicate that passwd should read the new password from standard input, which can be a pipe.
 
         這個選項用於 從標準輸入 管道讀入新的密碼
"echo asdasdg | passwd --stdin root"

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章