+ -
当前位置:首页 → 问答吧 → samba密码忘了怎么修改,两种方法都不行怎么回事,谢谢

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:~$ 

作者: 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

作者: sunjie718   发布时间: 2011-10-29

热门下载

更多