|
配置如下。
[root@localhost ~]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[tmp]"
Processing section "[fredsdir]"
Processing section "[wssxrdir]"
Loaded services file OK.
WARNING: passdb expand explicit = yes is deprecated
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
[global]
workgroup = MYGROUP
netbios name = MY_SMB
server string = Samba Server %v at %h
interfaces = 192.168.1.1/24
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
hosts allow = 192.168.1., 192.168.2., 127.
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[tmp]
comment = Temporary file space
path = /tmp
read only = No
guest ok = Yes
[fredsdir]
comment = Fred's Service
path = /usr/local/fred
valid users = fred
read only = No
[wssxrdir]
comment = Wssxr's Service
path = /var/samba/wssxr
valid users = wssxr
read only = No
建立的两个用户名为:fred wssxr.每个用户都在系统里和SMB里设置了相同的密码。
[root@localhost ~]# useradd wssxr
[root@localhost ~]# useradd fred
[root@localhost ~]# passwd wssxr
Changing password for user wssxr.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]# passwd fred
Changing password for user fred.
New UNIX password:
BAD PASSWORD: it is too simplistic/systematic
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]# smbpasswd -a wssxr
New SMB password:
Retype new SMB password:
Added user wssxr.
[root@localhost ~]# smbpasswd -a fred
New SMB password:
Retype new SMB password:
Added user fred.
[root@localhost ~]# cat /etc/samba/smbpasswd
#
# SMB password file.
#
wssxr:500:44EFCE164AB921CAAAD3B435B51404EE:32ED87BDB5FDC5E9CBA88547376818D4:[U ] CT-45320EDA:
fred:501:44EFCE164AB921CAAAD3B435B51404EE:32ED87BDB5FDC5E9CBA88547376818D4:[U ] CT-45320EEB:
[root@localhost ~]
两个用户在客户2000server和XP上都可通过验证打开TMP目录并且可建立删除文件。但就是打不开宿主目录和个人共享目录。
谁告诉我错在这里了?
谢谢大家先。。。。。。。。 |
|