1、yum install samba
2、mkdir /share
3、chmod 777 /share
4、vi /etc/samba/smb.conf做以下修改
security = user改为 security = share
[share]
comment = share
path = /share
public = yes
read only = no
[public]
comment = public
path = /public
public = yes
read only = no
valid users = ***,...
5、useradd ***
6、smbpasswd -a ***
7、service smb restart
时间: 2024-10-19 00:50:56