[Samba] smbd do not start

Rommel Rodriguez Toirac rommelrt at nauta.cu
Wed Sep 16 18:38:42 UTC 2020


Hello all;

I am installing samba4 (version 4.9.5) on Debian 10.5 to use it as a member of a samba4 AD DC domain (version 4.11.4). I am following the guide https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Domain_Member but I am having problems starting samba.

 So far I have installed the necessary packages listed here https://wiki.samba.org/index.php/Package_Dependencies_Required_to_Build_Samba

 I have modified /etc/krb5.conf

###
[libdefaults]
       dns_lookup_realm = false
       dns_lookup_kdc = true
       default_realm = GTM.ONAT.GOB.CU
###

The configuration of /etc/resolv.conf looks like this:

###
search gtm.onat.gob.cu
nameserver 192.168.41.17
###

and /etc/samba/smb.conf

###
[global]
  workgroup = ATGTM00
  security = ADS
  realm = GTM.ONAT.GOB.CU

  winbind refresh tickets = Yes
  vfs objects = acl_xattr
  map acl inherit = Yes
  store dos attributes = Yes

  dedicated keytab file = /etc/krb5.keytab
  kerberos method = secrets and keytab
  winbind use default domain = yes
  username map = /etc/samba/user.map

 log file = /var/log/samba/%m.log
 log level = 1   

 idmap config * : backend = tdb
 idmap config * : range = 3000-7999
 idmap config ATGTM00 : backend = rid
 idmap config ATGTM00 : range = 10000-999999

 template shell = /bin/bash
 template homedir = /home/%U   
###

But when I try to start smbd it gives me this error:

$ sudo systemctl status smbd.service -l  

 ● smbd.service - Samba SMB Daemon
  Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
  Active: failed (Result: exit-code) since Wed 2020-09-16 14:06:55 CDT; 31s ago
    Docs: man:smbd(8)
          man:samba(7)
          man:smb.conf(5)
 Process: 11665 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
 Process: 11669 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=255/EXCEPTION) 
Main PID: 11669 (code=exited, status=255/EXCEPTION)

sep 16 14:06:54 p107 systemd[1]: Starting Samba SMB Daemon...
sep 16 14:06:55 p107 smbd[11669]: [2020/09/16 14:06:55.166345,  0] ../source3/auth/auth_util.c:1382(make_new_session_info_guest) 
sep 16 14:06:55 p107 smbd[11669]:   create_local_token failed: NT_STATUS_NO_MEMORY 
sep 16 14:06:55 p107 smbd[11669]: [2020/09/16 14:06:55.168205,  0] ../source3/smbd/server.c:2000(main) 
sep 16 14:06:55 p107 smbd[11669]:   ERROR: failed to setup guest info. 
sep 16 14:06:55 p107 systemd[1]: smbd.service: Main process exited, code=exited, status=255/EXCEPTION 
sep 16 14:06:55 p107 systemd[1]: smbd.service: Failed with result 'exit-code'. 
sep 16 14:06:55 p107 systemd[1]: Failed to start Samba SMB Daemon.

 logs in /var/log/samba/smbd.log

###
[2020/09/16 14:06:55.145309,  1] ../source3/profile/profile_dummy.c:30(set_profile_level)
 INFO: Profiling support unavailable in this build.
[2020/09/16 14:06:55.166345,  0] ../source3/auth/auth_util.c:1382(make_new_session_info_guest)
 create_local_token failed: NT_STATUS_NO_MEMORY
[2020/09/16 14:06:55.168205,  0] ../source3/smbd/server.c:2000(main)
 ERROR: failed to setup guest info.
###


 What could I be doing wrong?


-- 
Rommel Rodriguez Toirac
rommelrt at nauta.cu


More information about the samba mailing list