samba用户的密码添加的用户必须是系统中存在的.当然这样有点不安全,但我们可以使用用户的映射来加强服务器的安全性..用户映射具体参考http://blog.chinaunix.net/u3/91713/showart_1806902.html
命令:smbpasswd
[root@yyszx /]# smbpasswd --help
smbpasswd: invalid option -- -
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 PASSWORD ldap admin password
-x delete user
-R ORDER name resolve order
阅读(831) | 评论(0) | 转发(0) |