samba

2021-09-30  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读