1,apt-get install samba
2,创建共享目录和权限
mkdir /opt/sharedir
chmod -R 777 /opt/sharedir
3,设置/etc/samba/smb.conf
[global]
workgroup = linuxserver
netbios name = linuxserver
server string = ilnuxserver
security = share
[linuxshare]
path = /opt/sharedir
writeable = yes
browseable = yes
guest ok = yes
4,重启SAMBA
/etc/init.d/samba restart
/etc/init.d/samba start
/etc/init.d/samba stop