samba-users May 2010 archive
Main Archive Page > Month Archives  > samba-users archives
samba-users: Re: [Samba] smbd start trouble - CentOS 5.4

Re: [Samba] smbd start trouble - CentOS 5.4

From: grant little <grantliddle_at_nospam>
Date: Fri May 28 2010 - 04:50:39 GMT
To: samba@lists.samba.org

On Thu, May 27, 2010 at 1:16 AM, Moray Henderson <
Moray.Henderson@ict-software.org> wrote:

> Whit Blauvelt wrote:
> >With smbd Version 3.0.33-3.14.el5 on two different CentOS 5.4 64-bit
> boxes,
> >"/etc/init.d/smb start" reports OK for both nmbd and smbd, but an
> instant
> >later smbd stops running, with no errors reported - just fails, no
> matter
> >what logging level is requested of it. Also, "service smb start" fails.
> >
> >On the other hand, "smbd -D" starts and runs smbd just fine, if done
> from
> >a
> >console. Also "sh /etc/init.d/smb start" runs it just fine, if from a
> >console. (sh = bash on CentOS, and the smb script itself specifies
> >/bin/sh.)
>
> That feels as if it could be an SELinux problem. If your initscript has
> been edited and picked up the wrong context, smbd will not have all the
> permissions it normally gets. Try
>
> ls -Z /etc/rc.d/init.d/smb
> restorecon -v /etc/rc.d/init.d/smb
>
>
> Moray.
> "To err is human. To purr, feline"
>
>
To test if it is selinux you might try with selinux set to permissive. I
had all kinds of troubles getting samba 3.0.33 working on centos 5.4, 64-bit
until I tried that. Good luck.
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba