ÎÒµÄsamba 2.0.7 Ϊʲô²»ÄÜͬʱ֧³Ö¶àÓû§·ÃÎÊ?
ÎÒÓý»²æ±àÒ빤¾ß±àÒëÁËÔÚmipselÉÏÅܵÄsambµ«ÊÇ sambÆðÀ´ºó Ò»´ÎÖ»ÄÜÈÝÐíÒ»¸öÓû§·ÃÎÊ.
ÎÒµÄÅäÖÃÎļþûʲôÎÊÌâ?
ÓÐÄÄλ´óϺÊìϤÕâ¸öÎÊÌâÂð?
ÊDz»Êǰ汾²»Ö§³Ö°¡
ÎÒ¿´ÁË˵Ã÷Îĵµ û˵ֻ֧³Öµ¥Óû§ ±àÒë²ÎÊýÊÇʲô?
Óû§²»ÄܵǼʱÓÐʲô´íÎóÌáʾ?
samba Ïà¹ØµÄÈÕÖ¾ÓÐÄÄЩ´íÎó?
»Ø¸´ #2 Roc.Ken µÄÌû×Ó
ÎÒµÄsamba°æ±¾ÊÇ2.0.7.ÏÖÔÚµÄÎÊÌâÊÇsambÆðÀ´ºó,ÿ´ÎÖ»ÈÝÐíÒ»¸öÓû§ÔÚ×ÊÔ´ä¯ÀÂÆ÷ÖÐÓÃ\\xx.xx.xx.xx ·ÃÎÊ,
Èç¹ûÁíһ̨»úÆ÷·ÃÎʵϰ,winXp»áÌáʾÈçÏÂÐÅÏ¢:
xx.xx.xx.xx can not find
»òÕß: xx.xx.xx.xx\xx is not accessible.you mightnot have permission to use the network resource.
contact the admins....
/var/log/ϵÄlogÐÅϢΪ:
[Sat Jan 1 00:00:13 2000, 1] smbd/server.c:main(647)
smbd version 2.0.7 started.
Copyright Andrew Tridgell 1992-1998
[Sat Jan 1 00:00:13 2000, 0] printing/pcap.c:pcap_printer_fn(366)
Unable to open printcap file /etc/printcap for read!
ÎÒµÄÅäÖÃÎļþÖÐÊÇÕâôÉèÖõÄ:
[etc]
comment = Home Directories
path = /etc
browseable = yes
writeable = yes
valid users = cqzou
create mode = 0664
directory mode = 0775
[share]
comment = /mnt/hd dirctory
path = /mnt/hd
read only = yes
public = yes
writable = yes
create mask = 0765
[home]
comment = All user's home dirctory
path = /home
read only = no
writable = yes
public = yes
write list = @stbteam
ÓÃtestparm´òÓ¡³öÀ´µÄÐÅϢΪ:
[global]
coding system =
client code page = 850
workgroup = NO_GROUP
netbios name =
netbios aliases =
netbios scope =
server string = stp_mips samba server
interfaces =
bind interfaces only = No
security = SHARE
encrypt passwords = Yes
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 = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*al
l*authentication*tokens*updated*successfully*
passwd chat debug = No
username map = /etc/samba/smbusers
password level = 0
username level = 0
unix password sync = Yes
restrict anonymous = No
use rhosts = No
debug level = 2
syslog = 1
syslog only = No
log file = /var/log/samba/%m.log
max log size = 0
debug timestamp = Yes
debug hires timestamp = No
debug pid = No
debug uid = No
protocol = NT1
read bmpx = No
»Ø¸´ #2 Roc.Ken µÄÌû×Ó
read bmpx = Noread 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/config/printers.def
strip dot = No
character set =
mangled stack = 50
stat cache = Yes%0
»Ø¸´ #2 Roc.Ken µÄÌû×Ó
....................[etc]
comment = Home Directories
path = /etc
valid users = cqzou
writeable = Yes
create mask = 0664
directory mask = 0775
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
[share]
comment = /mnt/hd dirctory
path = /mnt/hd
writeable = Yes
create mask = 0765
[home]
comment = All user's home dirctory
path = /home
write list = @stbteam
writeable = Yes
¶Ô±È·¢ÏÖ:testpermµÄ½á¹ûÖÐûÓгöÏÖpublic=yes .ÕâÊÇÎÒÔÚsmb.confÖÐÉèÖõÄ.
ÎÒÔø¾»³ÒÉÊÇÎÒµÄÅäÖÃÎļþµÄÔµ¹Ê,µ«¶à´ÎÐÞ¸Ä,ÈÔȻûÓнâ¾öÎÊÌâ.
»Ø¸´ #2 Roc.Ken µÄÌû×Ó
±àÒë sambaʱµÄÌáʾÐÅÏ¢ÈçÏÂ,ûÓз¢ÏÖ´íÎó:make[4]: Entering directory `/public/yizhang/2612-4.2/uclinux-rootfs/user/samba/
source'
Using FLAGS = -Os -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/public/y
izhang/2612-4.2/uclinux-rootfs/lib/uClibc/include -I/public/yizhang/2612-4.2/ucl
inux-rootfs -fno-builtin -I/public/yizhang/2612-4.2/uclinux-rootfs/linux-2.6.x/i
nclude -Iinclude -I./include -I./ubiqx -I./smbwrapper -DSMBLOGFILE="/var/log/lo
g.smb" -DNMBLOGFILE="/var/log/log.nmb" -DCONFIGFILE="/etc/config/smb.conf" -DLMH
OSTSFILE="/etc/config/lmhosts" -DSWATDIR="/home/samba/swat" -DSBINDIR="/bin" -
DLOCKDIR="/var/log/locks" -DSMBRUN="/bin/smbrun" -DCODEPAGEDIR="/home/samba/code
pages" -DDRIVERFILE="/etc/config/printers.def" -DBINDIR="/bin" -DHAVE_INCLUDES_H
-DPASSWD_PROGRAM="/bin/passwd" -DSMB_PASSWD_FILE="/etc/config/smbpasswd"
Using FLAGS32 = -Os -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/public
/yizhang/2612-4.2/uclinux-rootfs/lib/uClibc/include -I/public/yizhang/2612-4.2/u
clinux-rootfs -fno-builtin -I/public/yizhang/2612-4.2/uclinux-rootfs/linux-2.6.x
/include -Iinclude -I./include -I./ubiqx -I./smbwrapper -DSMBLOGFILE="/var/log/
log.smb" -DNMBLOGFILE="/var/log/log.nmb" -DCONFIGFILE="/etc/config/smb.conf" -DL
MHOSTSFILE="/etc/config/lmhosts" -DSWATDIR="/home/samba/swat" -DSBINDIR="/bin"
-DLOCKDIR="/var/log/locks" -DSMBRUN="/bin/smbrun" -DCODEPAGEDIR="/home/samba/co
depages" -DDRIVERFILE="/etc/config/printers.def" -DBINDIR="/bin" -DHAVE_INCLUDES
_H -DPASSWD_PROGRAM="/bin/passwd" -DSMB_PASSWD_FILE="/etc/config/smbpasswd"
Using LIBS = -lcrypt
make[4]: Leaving directory `/public/yizhang/2612-4.2/uclinux-rootfs/user/samba/s
ource'
Ò³:
[1]