安装samba

1.安装yum install smb

2.添加用户user add smbuser -s /sbin/nologin

3.添加目录/etc/samba/smb.conf

        [share]

        path = /home/smbuser/share

        available = yes

        browseable = yes

        public = yes

        writable = yes

        valid users = smbuser

        create mask = 0644

        directory mask =0744

3.解决selinux

chcon -t samba_share_t /home/smbuser/share/

Published At