CentOS 6 《Samba server》


《Samba server》

安裝套件
sudo yum install samba samba-client samba-common

開機啟動
sudo chkconfig smb on
sudo chkconfig nmb on

設定
cp /etc/samba/smb.conf /etc/samba/smb.cnf.bak
vi /etc/samba/smb.conf

[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = centos
security = user
map to guest = bad user
dns proxy = no
#============================ Share Definitions ==============================
[Anonymous]
path = /samba/anonymous
browsable =yes
writable = yes
guest ok = yes
read only = no

mkdir -p /samba/anonymous

chkconfig smb on

service smb restart

service nmb restart

cd /samba/

chmod -R 0777 anonymous/