[Samba] Cannot start SMB on CentOS 7
Robert Marcano
robert at marcanoonline.com
Mon Oct 14 15:30:07 UTC 2019
On 10/14/19 10:46 AM, 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:*
Take a look at https://bugzilla.redhat.com/show_bug.cgi?id=1648399 for
the reason.
You are setting up a standalone server so you may need to run:
net -s /dev/null groupmap add sid=S-1-5-32-546 unixgroup=nobody type=builtin
>
> 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.*
>
>
More information about the samba
mailing list