- 论坛徽章:
- 0
|
症状:可以在XP下看见samba server(ForrestLinux)\sharedocs, 但是我在\sharedocs下存放了文件,却看不见文件,XP下sharedocs是显示“0个对象”
[sharedocs]段原为[public],我以为是会共享主目录下的public文件夹,但是出现同样的问题,可以在XP下打开public文件夹,只是显示不出文件夹中的文件。
此外,可以用命令 smbclient -L //192.168.1.2 显示 XP机器上的共享文档,但是无法用
smbmount //192.168.1.2/SharedDocs /mnt/Company-1挂载文件卷
bash: smbmount: command not found。
以下是smb.conf,请识者不吝赐教:
#======================= Global Settings =====================================
[global]
workgroup = Company
server string = Samba Server
netbios name = ForrestLinux
security = share
; hosts allow = 192.168.1. 192.168.2. 127.
load printers = yes
; printcap name = /etc/printcap
; printcap name = lpstat
; printing = cups
cups options = raw
; guest account = pcguest
log file = /var/log/samba/%m.log
max log size = 50
; password server = <NT-Server-Name>
; realm = MY_REALM
; passdb backend = tdbsam
; include = /usr/local/samba/lib/smb.conf.%m
; interfaces = 192.168.12.2/24 192.168.13.2/24
; 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
; wins proxy = yes
dns proxy = no
; add user script = /usr/sbin/useradd %u
; add group script = /usr/sbin/groupadd %g
; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
; delete user script = /usr/sbin/userdel %u
; delete user from group script = /usr/sbin/deluser %u %g
; delete group script = /usr/sbin/groupdel %g
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
; comment = Network Logon Service
; path = /usr/local/samba/lib/netlogon
; guest ok = yes
; writable = no
; share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
; path = /usr/local/samba/profiles
; browseable = no
; guest ok = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
# This one is useful for people to share files
;[tmp]
; comment = Temporary file space
; path = /sharedocs
; read only = no
; public = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
[sharedocs]
comment = Public Stuff
path= /sharedocs
public = yes
writable = yes
printable = no
guest ok = yes
; write list = @staff
# Other examples.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
;[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 |
|