栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Linux Samba 安装的 艰难之路

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Linux Samba 安装的 艰难之路

首先安装一波 Samba  

 这个鬼地方啊就直接联网装 十分顺手~~~~~~

不建议本地源  就像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

具备写入权限  搞定!


 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/307968.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号