LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 645|回复: 5

samba 一直配不成功,希望大家指定一下。

[复制链接]
发表于 2004-10-1 00:23:01 | 显示全部楼层 |阅读模式
使用版本LINUX 3 AS实现与XP机子互访,花了时间都配制不好,现贴出源文件FSB.CONF,大家指点一下。我已经再XP和LINUX下建立了相同的帐号。且已经在
/etc/samba下产生了smbpasswd文件

情况是,XP机子不能访问我的LINUX共享目录
XP试图进入LINUX PC时,错误提示[找不到网络路径,没有权限与管理员联系等错误]


#======================= Global Settings =====================================
[global]

   workgroup = workgroup
   netbios name = server

   server string = Samba Server


;   hosts allow = 192.168.1. 192.168.2. 127.


   printcap name = /etc/printcap
   load printers = yes

;   printing = bsd


  guest account = nobody

   log file = /var/log/samba/%m.log


   max log size = 50

   security = user
# Use password server option only with security = server
;   password server = <NT-Server-Name>

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
;  password level = 8
;  username level = 8


;  encrypt passwords = yes
;  smb passwd file = /etc/samba/smbpasswd


;  unix password sync = Yes
;  passwd program = /usr/bin/passwd %u
;  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password*
;  username map = /etc/samba/smbusers

;   include = /etc/samba/smb.conf.%m

   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192


;   interfaces = 192.168.12.2/24 192.168.13.2/24


;   remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
;   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
# run a specific logon batch file per username
;   logon script = %U.bat

;   logon path = \\%L\Profiles\%U

; name resolve order = wins lmhosts bcast

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
;   wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
#        Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

;   wins proxy = yes
   dns proxy = no

;  preserve case = no
;  short preserve case = no
# Default case is normally upper case for all DOS files
;  default case = lower
# Be very careful with case sensitivity - it can break things!
;  case sensitive = no

#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   path = /mnt/hda6
   browseable = yes
   writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
;   comment = Network Logon Service
;   path = /home/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 = /home/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 = /var/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 = /tmp
;   read only = no
;   public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   read only = yes
;   write list = @staff

;[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

[th]
        comment = linux th
        path = /home/th
        guest ok = yes
[img]
 楼主| 发表于 2004-10-1 00:24:46 | 显示全部楼层
我的本机IP是192.168.11.2
发表于 2004-10-1 08:31:54 | 显示全部楼层
testparm没错?
 楼主| 发表于 2004-10-1 08:46:53 | 显示全部楼层
testparm通过的.
发表于 2004-10-1 09:08:02 | 显示全部楼层
我以前遇到过的情况是共享目录的权限有问题,
就会出现类似的提示.
你的这种情况是在XP的网上邻居点击你的机器后,网络登录对话框(也就是让你
输入用户名th的那个地方)出现之前,还是在输入之后有提示说找不到网络路径?
如果是输入后提示,应该是权限的事,网上邻居登录的用户当在本机上时
对/home/th有读写权吗?
 楼主| 发表于 2004-10-1 09:44:38 | 显示全部楼层
属前者..之前..
也就是根本打不开我的LINUX主机名.
或许是防火墙的问题.

我把他关了.再进去看.怎么还是启用的呀.晕.
耐性不好了.有点火了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表