通用Internet文件系统(Common Internet File System)
[root@localhost Server]# rpm -ivh
samba-* --force
warning: samba-3.0.33-3.7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...
########################################### [100%]
1:samba-common ########################################### [ 25%]
2:samba ########################################### [ 50%]
3:samba-client ########################################### [ 75%]
4:samba-swat ########################################### [100%]
[root@localhost Server]# vim /etc/samba/smb.conf
--------------------------
[global]
workgroup = WORKGROUP
server string = na_Samba Server Version %v
hosts allow = 127. 192.168.1. 192.9.200.
log file = /var/log/samba/%m.log
max log size = 50
security = share
passdb backend = tdbsam
smb passwd file = /etc/samba/smbpasswd
encrypt passwords = yes
[homes]
comment = Home Directories
browseable = no
--不隐藏共享目录
writable = yes
[public]
comment = Public Stuff
path = /var/ftp/pub
public = yes
writable = yes
printable = no
valid users = oracle
--------------------
[root@localhost Server]# service smb start
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
匿名用户查看共享目录
[root@localhost Server]#
smbclient -L //localhost
Password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.33-3.7.el5]
Sharename Type Comment
--------- ---- -------
public Disk Public Stuff
IPC$ IPC IPC Service (na_Samba Server Version 3.0.33-3.7.el5)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.33-3.7.el5]
Server Comment
--------- -------
20100311-0930 123
20100831-0307
519FF9D9BB2645E
AFFBEDADC72F48E
BEST-20100417EU
LOCALHOST na_Samba Server Version 3.0.33-3.7.el5
PC-201009051652
SAMMM-0FBCF7D9D
THTFCOMPUTER