使用samba时出现"Failed to find entry for user..."
很久没用samba在windows与linux之间传输文件了,今天用它传输oracle的几个安装包,使用smbpasswd命令生成密码时出现:
# smbpasswd oracle
New SMB password:
Retype new SMB password:
Failed to find entry for user oracle.
Failed to modify password entry for user oracle
New SMB password:
Retype new SMB password:
Failed to find entry for user oracle.
Failed to modify password entry for user oracle
可能是太久没有使用它了,有些命令都不记得了,看来要man一下。
解决方法,加参数'-a':
# smbpasswd -a oracle
好记性不如烂笔头,好多东东不用就忘记了。