2012年7月24日 星期二

使用bash script修改使用者的密碼

sudo useradd test
sudo echo "password" | passwd test --stdin
Reference: stackoverflow

沒有留言:

張貼留言