1.yum -y install samba 2.cd /etc/samba 3.ls 4.vim smb.conf 5.修改配置文件中的workgroup=STAFF 6.mkdir /common 7.vim smb.conf 8.在配置文件的最后加入这些内容 【common】 path=/common hosts allow=192.168.122.0/24 最后,保存退出 9.你共享某个目录,必须得把共享目录的上下文改一下, **chcon -R -t samba_share_t /common/ ** 10.查看andy用户存在不,不存在新建一个 id andy useradd andy 11.andy必须是Samba用户,pdbedit -L 没有这个命令,需要安装,如下 12.yum whatprovides */smbpasswd yum -y install samba-client smbpasswd -a andy 输入密码:redhat 13.firewall-cmd --add-service=samba firewall-cmd --add-service=samba --permanent
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
在linux服务上搭建一个最简单的smb文件共享
linux服务器部署一个简单的smb共享,并且添加用户设置用户权限
linux 用户组 访问共享 -
RHCE 第9题:配置多用户SMB挂载
rhce 考题笔记
rhce 考题 -
用Rust刷leetcode第八题
ProblemImplement atoi which converts a string to an integer.The function first discards as ma
rust编程 rust程序设计 leetcode git ide -
SMB案例:利用SAMBA实现/www目录共享
利用samba(SMB协议)可实现微软WIN和LINUX目录和文件共享,但是因139和445端口经常被用来攻&击,这些端口在很多单位的交换机上都是封掉的,现在大部分还是用内部网盘或者NFS格式比较多些。
samba共享 SMB 实现目录共享 CIFS SMB实现Linux和WIN共享