|
|

楼主 |
发表于 2004-6-25 13:27:31
|
显示全部楼层
"# Global parameters
[global]
workgroup = MSHOME(改为你的工作组,如office)
netbios name = LOCALHOST(改为你要的主机名,如smile)"
这样改的名字只是用来在WINXP网络邻居中显示的名字,而真正主机机名没改,如:
root@localhost root
我的主机名还是localhost,不知怎么办?
孙康:我在smb.conf中怎么找不到和你相似的语句,添加不了,请帮忙。
我现在还是可以访问WINXP机器,但WINXP却不能查到我,
smb.conf全文如下:
# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2004/06/23 14:16:56
# Global parameters
[global]
client code page = 936
workgroup = MSHOME
netbios name = linux
server string = Samba Server
security = SHARE
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
hosts allow = 169.254.100.1 169.254.100.127
printing = cups
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[public]
comment = Public Stuff
path = /home/eastowen
write list = @staff
read only = No
guest ok = Yes
[GM04]
comment = GM04
path = /home/GM04
username = GM04
valid users = GM04
read only = No
guest ok = Yes
[GM05]
comment = GM05
path = /home/GM05
username = GM05
valid users = GM05
guest ok = Yes
[share]
comment = win and linux share
path = /share
read only = No
guest ok = Yes |
|