|
按wiki默认配置samba后,由于windows重装,把密码忘了,现在网上邻居访问看到却进不去了,请问如何重设密码?
解决方法:在root下删除原来的账户,再重新加入即可。感谢楼下回帖。:Coffee:
- smbpasswd -help
- When run by root:
- smbpasswd [options] [username]
- otherwise:
- smbpasswd [options]
- options:
- -L local mode (must be first option)
- -h print this usage message
- -s use stdin for password prompt
- -c smb.conf file Use the given path to the smb.conf file
- -D LEVEL debug level
- -r MACHINE remote machine
- -U USER remote username
- extra options when run by root or in local mode:
- -a add user
- -d disable user
- -e enable user
- -i interdomain trust account
- -m machine trust account
- -n set no password
- -W use stdin ldap admin password
- -w PASSWORD ldap admin password
- -x delete user
- -R ORDER name resolve order
复制代码
先使用[color="Red"]sudo smbpasswd -x [username]
再使用[color="Red"]sudo smbpasswd -a [username] |
|