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: Moray Henderson <Moray.Henderson_at_nospam>
Date: Thu May 27 2010 - 08:16:45 GMT
To: "'Whit Blauvelt'" <whit+samba@transpect.com>, <samba@lists.samba.org>

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 unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba