[Samba] Cannot start SMB on CentOS 7

gw1500 i_was_yah00ed at yahoo.com
Mon Oct 14 15:44:34 UTC 2019


On 10/14/2019 11:32 AM, Rowland penny via samba wrote:
> On 14/10/2019 15:46, gw1500 via samba wrote:
>> *I am running Samba on CentOS 7 and for some reason I cannot get the smb
>> daemon to start (Samba version 4.9.1). This is the status after a failed
>> start:*
>>
>> smb.service - Samba SMB Daemon
>> ???? Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled;
>> vendor
>> preset: disabled)
>> ???? Active: failed (Result: exit-code) since Mon 2019-10-14 10:29:59
>> EDT;
>> 31s ago
>> ???????? Docs: man:smbd(8)
>> ???????????????????? man:samba(7)
>> ???????????????????? man:smb.conf(5)
>> ?? Process: 24991 ExecStart=/usr/sbin/smbd --foreground
>> --no-process-group $SMBDOPTIONS (code=exited, status=255)
>> ??Main PID: 24991 (code=exited, status=255)
>>
>> Oct 14 10:29:58 dap002 systemd[1]: Starting Samba SMB Daemon...
>> Oct 14 10:29:59 dap002 smbd[24991]: [2019/10/14 10:29:59.691636,?? 0]
>> ../source3/auth/auth_util.c:1382(make_new_session_info_guest)
>> Oct 14 10:29:59 dap002 smbd[24991]:???? create_local_token failed:
>> NT_STATUS_ACCESS_DENIED
>> Oct 14 10:29:59 dap002 smbd[24991]: [2019/10/14 10:29:59.691749,?? 0]
>> ../source3/smbd/server.c:2000(main)
>> Oct 14 10:29:59 dap002 smbd[24991]:???? ERROR: failed to setup guest
>> info.
>> Oct 14 10:29:59 dap002 systemd[1]: smb.service: main process exited,
>> code=exited, status=255/n/a
>> Oct 14 10:29:59 dap002 systemd[1]: Failed to start Samba SMB Daemon.
>> Oct 14 10:29:59 dap002 systemd[1]: Unit smb.service entered failed
>> state.
>> Oct 14 10:29:59 dap002 systemd[1]: smb.service failed.
>>
>> *I cannot find anything in my searches that seems to relate to this
>> specific problem. FWIW, here is my config:*
>>
>> [global]
>> ?????????????? workgroup = DAPWG1
>> ?????????????? security = user
>>
>> ?????????????? passdb backend = *****
>>
>> ?????????????? printing = cups
>> ?????????????? printcap name = cups
>> ?????????????? load printers = yes
>> ?????????????? cups options = raw
>>
>> [homes]
>> ?????????????? comment = Home Directories
>> ?????????????? valid users = %S, %D%w%S
>> ?????????????? browseable = No
>> ?????????????? read only = No
>> ?????????????? inherit acls = Yes
>>
>> [printers]
>> ?????????????? comment = All Printers
>> ?????????????? path = /var/tmp
>> ?????????????? printable = Yes
>> ?????????????? create mask = 0600
>> ?????????????? browseable = Yes
>>
>> [print$]
>> ?????????????? comment = Printer Drivers
>> ?????????????? path = /var/lib/samba/drivers
>> ?????????????? write list = root
>> ?????????????? create mask = 0664
>> ?????????????? directory mask = 0775
>>
>> # Web directory access
>> [webdir]
>> ?????????????? valid users = dap, at apache
>> ?????????????? writeable = yes
>> ?????????????? browsable = yes
>> ?????????????? path = /var/www
>> ?????????????? hosts allow = 192.168.0.0/255.255.255.0
>>
>> # ftp directory access
>> [ftp]
>> ?????????????? valid users = dap, at apache
>> ?????????????? writeable = yes
>> ?????????????? browsable = yes
>> ?????????????? path = /var/ftp
>> ?????????????? hosts allow = 192.168.0.0/255.255.255.0
>>
>> *Can someone help me debug this. At one point Samba was working but I
>> don't know what changed other than perhaps a CentOS 7 update. TIA.*
>>
>>
> Do you have winbind installed and running ?
>
> If so, remove it, it isn't required for a standalone server and it
> interferes with smbd. This is a known bug that has been fixed at 4.9.5
>
> Rowland
>
>
>
Thanks. That was it. I am having a problem getting a Windows shared
printer recognized so that is why I installed Winbind. If I cannot get
the printer working, I'll create a new thread.


-- 
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus




More information about the samba mailing list