smb.conf配置错误?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
oz
帖子: 1
注册时间: 2008-07-03 14:12

smb.conf配置错误?

#1

帖子 oz » 2009-06-18 15:23

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等需要帐户信息的文件夹
头像
sense
帖子: 308
注册时间: 2007-02-14 13:54

Re: smb.conf配置错误?

#2

帖子 sense » 2009-06-22 8:21

security = share 是不能以用户方式访问的,改成 security = user 试试
回复