[置顶] SAMBA设置实现WINDOWS共享

1,apt-get install samba

2,创建共享目录和权限
mkdir /opt/sharedir
chmod -R 777 /opt/sharedir

3,设置/etc/samba/smb.conf
[global]
workgroup = linuxserver
netbios name = l
inuxserver
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

你可能感兴趣的:(windows,server,String,Security,Path)