CENTOS安装配置samba

比UBUNTU麻烦很多。

  • 安装samba
yum install -y samba
  • 允许WINDOWS访问

/etc/sysconfig/selinux

SELINUX=disabled
  • 添加用户

这个用户是系统已有的用户。

smbpasswd -a quantum6
  • 配置

https://blog.csdn.net/quantum7/article/details/81706513

/etc/samba/smb.conf

[share]

comment = QUANTUM6

path  = /home/quantum6

valid users = quantum6
force user  = quantum6
force group = quantum6

create mask    = 0777
directory mask = 0777

public     = yes
writable   = yes
available  = yes
browseable = yes
  • 关闭防火墙
systemctl stop    firewalld

systemctl disable firewalld
  • 启动samba服务
systemctl start smb 
systemctl start nmb

systemctl enable smb
systemctl enable nmb

 

你可能感兴趣的:(Linux/Shell)