On 05/25/2010 04:39 PM, Whit Blauvelt wrote: > On Tue, May 25, 2010 at 06:23:02PM -0400, Todd Denniston wrote: >> i.e. you may need to: >> A) restorecon /etc/init.d/smb and any other samba files that you have copied/edited. > > It doesn't work with the smb file which is virgin, as installed by CentOS. "restorecon" fixes the SELinux context of the file. Most other forms of repair (short of removing and reinstalling the package) will not do that. If the context is correct, you should not get the errors that you saw. "restorecon -v" is instructive in telling you whether or not anything needed to be fixed. "ls -lZ" will show you the context which is currently set. >> B) look in one of the /var/log/ files for selinux messages when you are starting samba. > > There are no lines in any log file with both "selinux" combined with either > "mbd" or "samba". Plus selinux is just in advisory mode if not specifically > configured to be in the way, isn't it? Look in /var/log/audit/audit.log. Specifically, watch for lines containing "AVC".