Re: Odd failure of smbd to start from init.d - CentOS 5.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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".
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux