这个鬼地方啊就直接联网装 十分顺手~~~~~~
不建议本地源 就像Python一样 明明联网顺手一批 我还瞎鼓捣~~
第二关掉防火墙 都懂 不解释了
代码如下 记得root运行 怕权限不够
systemctl stop firewalld
systemctl disable firewalld
第三配置一下配置文件 (这里)vim /etc/samba/smb.conf
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
保存退出 wq!
第四创个用户 作为登陆
useradd -d /home/jhsx jhsx
第五 pdbedit 添加进Samba里面加个密码
第六 开Samba服务systemctl start smb
第七 走起!放进去文件测试就OK
具备写入权限 搞定!



