Equipo: centos7, sistema físico win10 de la máquina
Verifique el paquete de instalación
[root@localhost ~]# rpm -qa grep samba
samba-4.10.4-11.el7_8.x86_64
grep-2.20-3.el7.x86_64
Crea un directorio y otorga permisos
[ root@localhost ~]# mkdir /var/exchange
[ root@localhost ~]# mkdir /var/ j ishubu
[ root@localhost ~]# chomd 1777 /var/exchange
[ root@localhost ~]# chomd 775 /var/j ishubu
[ root@localhost ~]# 11 /var
drwxrwxrwt.2 root root 6 6月25 17 :25 exchange
rwxrwxr-x.2 root root 6 6月25 17:25 j ishubu
Agregar grupo de usuarios
[ root@localhost ~]# groupadd j ishubu
[ root@localhost ~]# useradd -g j ishubu test1 #添加test1并加入j ishubu
[ root@localhost ~]# chgrp j ishubu /var/jishubu
Modificar el servicio de configuración
[ root@localhost ~]# vim /etc/samba/smb.conf
##添加建立的用户组的配置其他不用修改
[jishubu]
comment = jishubu`s file
path =/var/jishubu
public = yes
write list = @jishubu
[exchange]
comment = Public Stuff
path = /var/exchange
public = yes
writeable = yes
Chequeo de gramática
[ root@localhost ~]# testparm
Crear usuario y contraseña de smb
[root@localhost ~]# smbpasswd -a smbtest
New SMB password:
Retype new SMB password:
[root@localhost ~]# smbpasswd -a test1
New SMB password:
Retype new SMB password:
Reinicie el servidor y comience a probar
[root@localhost ~]# service smb restart
Win 10 open sam service,
haga clic en abrir prueba de programa
ok fin