1、安装samba yum install samba samba-common samba-client -y 2、修改配置文件 [
[email protected] /tmp] Nginx Proxy #cat /etc/samba/smb.conf [global] min protocol=NT1 max protocol=SMB3 workgroup=WORKGROUP server string = ShunX netbios name = ShunXsmb # log file = /var/log/samba/log.%m # security = share security = user map to guest = Bad User winbind enum users=yes load printers=yes printcap name=cups printing=cups [public] comment = Public Stuff path = /data1/xunlei/ public = yes writeable = yes browseable = yes guest ok = yes 3、启动服务 systemctl enable nmb smb systemctl restart nmb smb 4、检查服务状态 [
[email protected] /etc/samba] Nginx Proxy #smbclient -L 127.0.0.1 Enter WORKGROUP\root's password: Sharename Type Comment --------- ---- ------- public Disk Public Stuff IPC$ IPC IPC Service (ShunX) Reconnecting with SMB1……
阅读全文