Linux中samba服务器的基本配置
来源:Asp之家 时间:2010-08-17 18:22:00
当安全等级为user时,这时我们在本机建立的用户必须加入到SMB服务器中,命令为 smbpasswd -a 用户 添加LINUX用户到SMB服务器中,smbpasswd 用户名 修改SMB服务器中用户的口令
#======================= Global Settings ===================================== 全局参数配置,设置的是针对所有的资源
[global]
# workgroup = NT-Domain-Name or Workgroup-Name ---------------------------- 工作组的名称(可以不填,默认就这样)
workgroup = soft
# server string is the equivalent of the NT Description field
server string = 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
[printers] ----------------------------打印机配置
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
[pp] --------------------以下是我所共享的文件夹
comment = this is our soft! 共享说明
path = /www/pp 共享文件夹的路径
write list = smb 允许写入权限的用户列表,smb用户允许写入
read list = 只读权限的用户列表
public = yes 是否允许发布
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
通过Google AdSense赚取美元这4年
关注网站常见后门方法大总结
高飞:网络编辑新手初入行业如何起步经验
![](https://img.aspxhome.com/file/UploadPic/200812/20081223105620406.jpg)
SMTP服务对命令流水的扩展
微软首席财务官里德尔年底离职 克莱恩接替
网站首页被GOOGLE降权后的处理方法
两日线下实体商户推广实践总结
GoDaddy:Redeeming Standard Single Domain SSL证书
病毒邮件已成为邮件的首要危害
马云:因小而美
建博数月日PV近千 坚持原创勤于更新推广
释疑:谷歌到底是如何对待搜索引擎优化的
![](https://img.aspxhome.com/file/UploadPic/20091/200916182910395.png)
你的服务器能承受多大流量
![](https://img.aspxhome.com/file/UploadPic/20113/9/1019260-86s.png)
Qmail邮件服务器安装过程
一个网站CEO的现实生活
![](https://img.aspxhome.com/file/uploadpic/200710/8/2007108121048155.jpg)
专访SEOMoz公司创始人Rand Fishkin
分享高校论坛建设管理心得
雅虎CEO因病缺席分析师会议遭嘲讽
![](https://img.aspxhome.com/file/UploadPic/200910/20091026111632608.jpg)