安装samba
yum install samba
设置权限
[blctrl@localhost ~]$ sudo chmod -R 777 /samba_share [blctrl@localhost ~]$ sudo chown -R nobody:nobody /samba_share [blctrl@localhost ~]$ sudo chcon -t samba_share_t /samba_share
设置samba
[root@localhost blctrl]# vi /etc/samba/smb.conf [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = almaLinux-8 security = user map to guest = bad user dns proxy = no ntlm auth = true [Public] path = /samba_share browsable = yes writable = yes guest ok = yes read only = no
关闭SELINUX : 很关键,不然也只能读不能写
setenforce 0 #关闭 getenforce #查看状态 Permissive #这个状态就可写了
标签:samba,sudo,share,yes,blctrl,localhost From: https://www.cnblogs.com/seven397873274/p/18129864