- 论坛徽章:
- 0
|
看了相关的一些贴子, 还是没看出个头绪, http://us1.samba.org/samba/docs/using_samba/toc.html上面的文档也看的西里胡涂的, 郁闷. 系统是rh9.0, samba不是系统自带的, 后装的3.0. 访问其它机器都没有问题.
#======================= Global Settings =================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = WORKGROUP
netbios = FZ
server string = Samba Server
printcap name = /etc/printcap
load printers = yes
printing = cups
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*succe
ssfully*
pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
#============================ Share Definitions ===========================
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
[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
[myshare]
comment = My share
path = /home/fengyg/Data/share
valid users = guest
public = no
writable = yes
printable = no
create mask = 0765 |
|