Samba Access authorization on Centos 8

Issues related to configuring your network
Post Reply
littlesnake
Posts: 1
Joined: 2021/04/30 16:53:21

Samba Access authorization on Centos 8

Post by littlesnake » 2021/04/30 17:14:45

Hello Everybody !!!!

I'm actually Working on Samba on centos 8 here you are my config set up :

samba conf file smb.conf:
[global]
netbios name = localhost
workgroup = WORKGROUP
server string = Samba Server %v
# log file = /var/log/samba/%m.log
max log size = 50
security = user
# usershare allow guests = yes
# Base de données de comptes
# passdb backend = smbpasswd
# interfaces = 192.168.1.118/24 enp0s3
dns proxy = no
# map to guest = bad user
# printing = cups
# printcap name = cups
# load printers = yes
# cups options = raw
## hosts allow = 192.168.1.

[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
create mask = 0755
directory mask = 0755
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @printadmin root
force group = @printadmin
create mask = 0664
directory mask = 0775
# [tmp]
# répertoire partagé
# path = /tmp
# pas de mot de passe pour se connecter au partage
# guest ok = yes
# écriture possible dans le répertoire
# writeable = yes
# partage visible
# browseable = yes
[Profiles]
path = /var/lib/samba/profiles
browseable = no
guest ok = yes
[git]
comment = G I T
# chemin d’accès a la ressource
path = /home/samba/git
browseable = yes
# chemin d’accès a la ressource
public = yes
valid users = @lst,@master
writable = yes
create mask = 0750
[licence]
comment = G I T licence
# chemin d’accès a la ressource
path = /home/samba/licence
browseable = yes
# chemin d’accès a la ressource
public = yes
valid users = @lst
writable = yes
create mask = 0750
[master]
comment = G I T master
# chemin d’accès a la ressource
path = /home/samba/master
browseable = yes
# chemin d’accès a la ressource
public = yes
valid users = @lst
writable = yes
create mask = 0750
[partage]
comment = Fichier Public
path = /home/samba/partage
public = yes
guest ok = yes
writable = yes
browseable = yes
read only = no
printable = no
valid users = user1
# force user = nobody
create mask = 0777
directory mask = 0777

And I've an user like user1 with :
smbpasswd -a user1
And Also I enabled the samba service over the firewall:
but while connecting with my client windows I 've got :
windows can't access to the share \\192.168.1.118\partage
please contact network admin to access .
I 've searcing for 2 weeks please to help dears !!
Thanks !!!!

BShT
Posts: 429
Joined: 2019/10/09 12:31:40

Re: Samba Access authorization on Centos 8

Post by BShT » 2021/04/30 18:55:11

selinux?

Post Reply

Return to “CentOS 8 - Networking Support”