I've recently set up a new samba share, and it works beautifully. The problem I have run into however first manifested when I tried to load an apparmor profile for samba.
The command I am using is:
The response I am getting is:
cat /etc/apparmor.d/usr.sbin.smbd | sudo apparmor_parser -r
I am using a slightly modified version of the default samba profile provided through apparmor-profiles, so thinking it was my modification, tried the vanilla profile, and got the same. Tried the whole command as root, made no difference. Got frustrated, tried other unmodified stock profiles, same error. Tried a nearly blank profile with a single correct line as a control, same error. File system permissions are all good.
Warning from stdin (line 1): apparmor_parser: cannot use or update cache, disable, or force-complain via stdin
sudo apparmor_status reveals that all the stock vanilla profiles are loaded. It just won't let me overwrite any of them. Removing and trying to add fresh gave the same error.
Mighty google has turned up nothing on this one, and the only other similar problem on the forum had additional information which pointed to a profile error. Its giving me no other info.
It doesn't seem to make any difference what I input, but here is my profile. Its just the stock one plus two lines:
For all I know, it might be something ridiculously easy, but I've been banging my head on this for nearly four hours. If anyone has some insights to share, it would be hugely appreciated.
# Site-specific additions and overrides. See local/README for details.