由 rockwind 在 05-23-2003 09:59 发表:
请大家看看我的samba配置那些地方不对阿
首先说一下我的环境,RedHat 7.1
uname -a 结果:
Linux localhost.localdomain 2.3.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
这个linux是安装在一台win2000的vmware4的虚拟机上,win2000系统的ip为192.96.1.99,linux系统的ip:192.96.1.98,如果我把下面[global]中的workgroup改为win2000所在的win2000的域:mi_domain,则所在网上邻居的mi_domian域里能看见名字为samba的机器,但是访问的时候老时说路径错误
而如果workgroup=samba时候,用网上邻居进入samba这个域,非常的慢?也不知道是不是正常?
下面是我的smb.conf:
Samba config file created using SWAT
from localhost.localdomain (127.0.0.1)
Date: 2003/05/21 22:52:56
Global parameters
[global]
client code page = 936
workgroup = samba
netbios name = SAMBA
server string = Samba Server
security = SHARE
log file = /var/log/samba/%m.log
max log size = 500
guest account = nobody
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = yes
[public]
comment = Public stuff
path = /home/samba
public = yes
writable = yes
printalbe = no
[share]
comment = share on lzp
path = /home/share
guest ok = Yes
请看看我这个配置那里错了呢?多谢
由 harrypotter 在 05-23-2003 10:05 发表:
好象没什么太大毛病,用testparm看看,另外,用vmware自然要慢些..
Harry Potter LOTR GnOmE!
新机子:p4c-1.7+512DDR+40G(Fedora Core 1:15G)+ac97+geforce2MX400
http://freshmeat.net/projects/mydiary/
由 rockwind 在 05-23-2003 10:18 发表:
我用testparm测了一下
他说unknown param printable
我把[public]中的printable去掉了,
下面是新的testparm结果
Load smb config files from /etc/samba/smb.conf
Processing section "[public]"
Processing section "[share]"
Loaded services file OK.
Press enter to see a dump of your service definitions
Global parameters
[global]
coding system =
client code page = 936
workgroup = SAMBA
netbios name = SAMBA-LZP
netbios aliases =
netbios scope =
server string = Samba Server
interfaces =
bind interfaces only = No
security = SHARE
encrypt passwords = No
update encrypted = No
allow trusted domains = Yes
hosts equiv =
min password length = 5
map to guest = Never
null passwords = No
password server =
smb passwd file = /etc/samba/smbpasswd
root directory = /
passwd program = /bin/passwd
passwd chat = newpassword* %n\n newpassword* %n\n changed
passwd chat debug = No
username map =
password level = 0
username level = 0
unix password sync = No
restrict anonymous = No
use rhosts = No
ssl = No
ssl hosts =
ssl hosts resign =
ssl CA certDir =
ssl CA certFile =
ssl server cert =
ssl server key =
ssl client cert =
ssl client key =
ssl require clientcert = No
ssl require servercert = No
ssl ciphers =
ssl version = ssl2or3
ssl compatibility = No
debug level = 2
syslog = 1
syslog only = No
log file = /var/log/samba/%m.log
max log size = 500
debug timestamp = Yes
debug hires timestamp = No
debug pid = No
debug uid = No
protocol = NT1
read bmpx = No
read raw = Yes
write raw = Yes
nt smb support = Yes
nt pipe support = Yes
nt acl support = Yes
announce version = 4.2
announce as = NT
max mux = 50
max xmit = 65535
name resolve order = lmhosts host wins bcast
max ttl = 259200
max wins ttl = 518400
min wins ttl = 21600
time server = No
change notify timeout = 60
deadtime = 0
getwd cache = Yes
keepalive = 300
lpq cache time = 10
max disk size = 0
max open files = 10000
read prediction = No
read size = 16384
shared mem size = 1048576
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
stat cache size = 50
load printers = Yes
printcap name = /etc/printcap
printer driver file = /etc/samba/printers.def
strip dot = No
character set =
mangled stack = 50
stat cache = Yes
domain groups =
domain admin group =
domain guest group =
domain admin users =
domain guest users =
machine password timeout = 604800
add user script =
delete user script =
logon script =
logon path = \%N%U\profile
logon drive =
logon home = \%N%U
domain logons = No
os level = 20
lm announce = Auto
lm interval = 60
preferred master = No
local master = Yes
domain master = No
browse list = Yes
dns proxy = Yes
wins proxy = No
wins server =
wins support = No
wins hook =
kernel oplocks = Yes
ole locking compatibility = Yes
oplock break wait time = 10
smbrun = /usr/bin/smbrun
config file =
auto services =
lock directory = /var/lock/samba
default service =
message command =
dfree command =
valid chars =
remote announce =
remote browse sync =
socket address = 0.0.0.0
homedir map = auto.home
time offset = 0
unix realname = No
NIS homedir = No
source environment =
panic action =
comment =
path =
revalidate = No
username =
guest account = nobody
invalid users =
valid users =
admin users =
read list =
write list =
force user =
force group =
writeable = No
create mask = 0744
force create mode = 00
security mask = -1
force security mode = -1
directory mask = 0755
force directory mode = 00
directory security mask = -1
force directory security mode = -1
inherit permissions = No
guest only = No
guest ok = No
only user = No
hosts allow =
hosts deny =
status = Yes
max connections = 0
min print space = 0
strict sync = No
sync always = No
write cache size = 0
printable = No
postscript = No
printing = bsd
print command =