I got this with journalctl -f
command
Jan 04 23:41:01 fedora audit[172428]: AVC avc: denied { module_request } for pid=172428 comm=“smbd[192.168.1.” kmod=“netdev-3” scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=system permissive=0
I thought It was because of SELinux so I even did setenforce 0
, but that did not resolve it.
My smb configuration is the following
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
#
# Note:
# SMB1 is disabled by default. This means clients without support for SMB2 or
# SMB3 are no longer able to connect to smbd (by default).
[global]
loglevel = 5
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
# Install samba-usershares package for support
include = /etc/samba/usershares.conf
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[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
[sambashare]
path = /home/testuser/Public
writeable = yes
browseable = yes
create mask = 0755
directory mask = 0755
write list = user
valid users = testuser
# apple - ios
vfs objects = catia fruit streams_xattr
fruit:nfs_aces = no