[global]
# workgroup = NT-Do-Name or Workgroup-Name ---------------------------- 工作组名称(可以不填默认就这样)
workgroup = soft
# server is the equivalent of the NT Description field
server = Samba Server --------------------------------------------- 对SMB服务器简要介绍说明
hosts allow = 192.168.1. 192.168.2. 127. -------------------------------- 设置可访问SMB服务器主机(可为IP主机名域名)
# Security mode. Most people will want user level security. See
# security_level.txt for details. ------------------------------ 指定SMB服务器使用安全等级 security = share 指是当客 户机连入SMB服务器时不需要帐号密码就可以访问资源
security = user 指是当客户炼乳SMB服务器时必须输入用户 名和密码才能访问
security = user
# Do not enable this option unless you have read those documents
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
# Share Definitions 共享资源参数配置
[homes] -----------------------用户以帐号和密码访问是否允许进入自己宿主文件夹
comment = Home Directories (默认就这样可以不要修改)
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
[prers] ----------------------------打印机配置
comment = All Prers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to pr
guest ok = no
writable = no
prable = yes
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; prable = no
; create mask = 0765
[pp] --------------------以下是我所共享文件夹
comment = this is our soft! 共享介绍说明
path = /www/pp 共享文件夹路径
write list = smb 允许写入权限用户列表smb用户允许写入
read list = 只读权限用户列表
public = yes 是否允许发布
当安全等级为user时这时我们在本机建立用户必须加入到SMB服务器中命令为 smbpasswd -a 用户 添加LINUX用户到SMB服务器中
smbpasswd 用户名 修改SMB服务器中用户口令
由于时间有限以上讲都是基本配置若有什么疑问地方希望大家都提出来
最新评论