centos 配置 samba

375 阅读1分钟

安装

sudo yum install samba -y

添加samba用户

sudo smbpasswd -a xxx

配置smb.conf

在文件的最后添加

[work]
    comment = this is comment
    path = xxx
    writable = yes
    browseable = yes
    valid users = xxx

重启samba

sudo service samba start

windows上映射

\ip\work,在弹出的输入框中输入上文加入的用户名和设置的密码即可