shell脚本自动设置samba密码:

(echo xxxx;echo xxxx) | smbpasswd -a zhi.ming