|
|
关于samba配置
#关于share and user 设置........晕!!!!!!!!!
#设为share时多了一个文件家root?????,gre这个文件家是没问题的 ,无论guest account
= nobody or kong or gre
#kong这个文件家有时没权限,有时又能访问????可设置和gre一样的阿????????
#设置成user 时 ,root文件家无论我输入杀用户明密码都没辙?????
其余除料gre 能知接访问外,其余都说没全线 ????
#我是在winxp 能找到samba 服务起,就是访问出问题!!!
#那位帮我看下,不然真得斯掉料
#======================= Global Settings =====================================
[global]
workgroup = guogroup
netbios name = smb-server
server string = samba server
hosts allow = 192.168.1. 192.168.2. 127. 172.16.27.136 172.16.27.219
printcap name = /etc/printcap
load printers = yes
printing = cups
guest account = kong
log file = /var/log/samba/%m.log
max log size = 0
security = user
# password server = *
; password server = <NT-Server-Name>
; password level = 8
; username level = 8
smb passwd file = /etc/samba/smbpasswd
; ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
unix password sync = No
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*aut
hentication*tokens*updated*successfully*
pam password change = yes
; username map = /etc/samba/smbusers
; include = /etc/samba/smb.conf.%m
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=819
; interfaces = 192.168.12.2/24 192.168.13.2/24
interfaces = 172.16.27.219
; remote browse sync = 192.168.3.25 192.168.5.255
; remote announce = 192.168.1.255 192.168.2.44
; local master = no
; os level = 33
; domain master = yes
; preferred master = yes
; domain logons = yes
; logon script = %m.bat
; logon script = %U.bat
; logon path = \\%L\Profiles\%U
; wins support = yes
; wins server = w.x.y.z
guest ok = yes
encrypt passwords = yes
username map = /etc/samba/smbusers
dns proxy = no
; preserve case = no
; short preserve case = no
; default case = lower
; case sensitive = no
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775
# If you want users samba doesn't recognize to be mapped to a guest user
; map to guest = bad user
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
printable = yes
[gre]
comment = Gre's Service
guest ok = yes
path = /home/gre
[kong]
comment = kong's Service
guest ok = yes
path = /home/kong
[tmp]
comment = tmp
guest ok = yes
path = /tmp
create mode = 0666
[home]
guest ok =yes
path = /home |
|