On Mon, 9 Oct 2017, Alan McKay wrote:

Hi folks,

I've been googling for an hour on this which seems to be awfully
basic.  But I cannot find anything definitive.

[root@centos-gig ~]# systemctl enable smb.service
Failed to execute operation: Access denied
[root@centos-gig ~]# setenforce 0
[root@centos-gig ~]# systemctl enable smb.service
Failed to execute operation: No such file or directory

Does /usr/lib/systemd/system/smb.service exist? It does not look like it
based on the error above.

Does "rpm -V samba" show anything useful?


Have tried things like :
chcon -t samba_share_t /home/amckay

Also took the output from:
getsebool -a | grep samba

and set all them to "on"

The selinux stuff means nothing if you have selinux set to permissive.


Stripped my config down to the most basic.

What am I missing?


# Global parameters
[global]
netbios name = centos
security = USER
idmap config * : backend = tdb

Is this a standalone server?


[homes]
comment = Home Directories
browseable = No
inherit acls = Yes
read only = No
valid users = %S %D%w%S

Does testparm show any errors?

HTH,

--
Tom                     [email protected]
_______________________________________________
CentOS mailing list
[email protected]
https://lists.centos.org/mailman/listinfo/centos

Reply via email to