当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : smb.conf配置错误?
帖子发表于 : 2009-06-18 15:23 

注册: 2008-07-03 14:12
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[mytmp]"
Processing section "[caiwu]"
Processing section "[lingdao]"
Processing section "[exchange]"
Processing section "[Public]"
Processing section "[netlogon]"
WARNING: The "share modes" option is deprecated
Processing section "[profiles]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = UBUNTUWORKGROUP
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775

[mytmp]
comment = my tomcat
path = usr/local/tomcat
read only = No
create mask = 0755
guest ok = Yes

[caiwu]
comment = caiwu
path = /home/samba/caiwu
valid users = @caiwu, @lingdao, network02
write list = caiwu01

[lingdao]
comment = lingdao
path = /home/samba/lingdao
valid users = @lingdao, network02
read only = No

[exchange]
comment = Exchange File Driectory
path = /home/samba/exchange
read only = No
guest ok = Yes

[Public]
comment = read only Public
path = /home/samba/public
guest ok = Yes

[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
guest ok = Yes
share modes = No

[profiles]
comment = Users profiles
path = /home/samba/profiles
create mask = 0600
directory mask = 0700
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers


#testparm 结果如上,无法用smb账号访问文件夹caiwu等需要帐户信息的文件夹


页首
 用户资料  
 
2 楼 
 文章标题 : Re: smb.conf配置错误?
帖子发表于 : 2009-06-22 8:21 
头像

注册: 2007-02-14 13:54
帖子: 308
送出感谢: 0 次
接收感谢: 0 次
security = share 是不能以用户方式访问的,改成 security = user 试试


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译