1.安装环境

centos7.5 配置samba服务器

2.安装samba

  • 安装samba应用
    yum install samba samba-client
  • 启动samba应用
    systemctl start smb nmb
  • 查看samba服务进程
    ps -ef | grep -E ‘smb|nmb’
    centos7.5 配置samba服务器
  • 查看samba的服务进程端口
    netstat -tunlp | grep -E ‘smbd|nmbd’
    centos7.5 配置samba服务器

    3.samba配置服务

    1.查看配置文件

    vim /etc/samb/smb.conf

    2.配置samba服务

    centos7.5 配置samba服务器

    3.创建共享目录

    mkdir share

    4. 添加linux用户

    useradd myshare

    5.添加samba用户

    pdbedit -a myshare
    pdbedit -a root
    centos7.5 配置samba服务器

    6.重启samba服务

    systemctl restart nmb
    systemctl restart smb
    centos7.5 配置samba服务器

    7.关闭防火墙

    iptables -F
    setenforce 0

4.windows登录samba

centos7.5 配置samba服务器

.

相关文章:

  • 2021-06-01
  • 2022-12-23
  • 2021-12-16
  • 2021-11-05
  • 2021-08-02
猜你喜欢
  • 2021-11-22
  • 2022-01-14
相关资源
相似解决方案