systemctl enable smb.service
vi /etc/samba/smb.conf
netbios name = linux48
log file = /var/log/samba/smbd.log
log level = 2
max log size = 50
[tmp]
path = /tmp
read only = No
public = Yes
[share]
read list = @share
write list = @share
public = No
browseable = Yes
writable = Yes
create mask = 0664
directory mask = 0770
path = /home/share
groupadd share
usermod -G share mary
usermod -G share john
systemctl restart smb.service
找不到 命令
yum -y install samba-client
mkdir -p /home/share
chown :share /home/share
chmod 770 /home/share