samba

作者: 我说早早早 | 来源:发表于2021-09-30 14:42 被阅读0次

安装samba

yum install -y samba

启动samba服务

systemctl start smb

修改samba配置

vim /etc/samba/smb.conf

[username]

        comment =  username home directory

        browseable = yes

        path = /home/username

        guest ok = no

        read only = no

        writable = yes

        create mask = 0644

        write list = username

        valid users = username

将用户新增到samba

1. 必须是系统用户

smbpasswd -a username

将smb设置开机自启动

chkconfig smb on

chkconfig nmb on

相关文章

网友评论

      本文标题:samba

      本文链接:https://www.haomeiwen.com/subject/ejsjnltx.html