samba密码忘了怎么修改,两种方法都不行怎么回事,谢谢
时间:2011-10-29
来源:互联网
很久没用ubuntu(架在vmware中)了,最近想玩玩,但是samba密码忘了,请出招
1、就会自动登陆,这样就没法切换用户了,所以添加用户验证
# vi /etc/samba/smb.conf
[global]
workgroup=WORKGROUP
Server string=myserver
netbios name=wispserver
security=user
encrypt passwords=yes
smb password file=/etc/samba/smbpasswd
我这样设置然后restart不管用,这个是不用密码
2、
我用命令修改时候总是提示我那个NT code
js@jas:~$ smbpasswd -R jason
Old SMB password:
New SMB password:
Retype new SMB password:
cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host 127.0.0.1!
machine 127.0.0.1 rejected the password change: Error was : NT code 0x1c010002.
js@jas:~$
1、就会自动登陆,这样就没法切换用户了,所以添加用户验证
# vi /etc/samba/smb.conf
[global]
workgroup=WORKGROUP
Server string=myserver
netbios name=wispserver
security=user
encrypt passwords=yes
smb password file=/etc/samba/smbpasswd
我这样设置然后restart不管用,这个是不用密码
2、
我用命令修改时候总是提示我那个NT code
js@jas:~$ smbpasswd -R jason
Old SMB password:
New SMB password:
Retype new SMB password:
cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host 127.0.0.1!
machine 127.0.0.1 rejected the password change: Error was : NT code 0x1c010002.
js@jas:~$
作者: sunjie718 发布时间: 2011-10-29
jason 这个名字是在passwd那个文件中的
js@jas:~$ smbpasswd -a jason
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
js@jas:~$ smbpasswd -a sj
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
js@jas:~$ smbpasswd -a jason
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
js@jas:~$ smbpasswd -a sj
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
作者: sunjie718 发布时间: 2011-10-29
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28