You are not logged in.

#1 2018-07-18 21:48:40

sajmonella9
Member
Registered: 2015-08-26
Posts: 29

Samba Start Problem.

Hi i try to start / enabled a samba service but i found problem on my way.

enabled : samba smb nmb winbind
Extra : i have problem with GSSAPI-Proxy on Startup.

Log

● samba.service - Samba AD Daemon
   Loaded: loaded (/usr/lib/systemd/system/samba.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2018-07-19 16:38:21 CEST; 2s ago
     Docs: man:samba(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 2161 ExecStart=/usr/bin/samba --foreground --no-process-group $SAMBAOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 2161 (code=exited, status=1/FAILURE)
   Status: "daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details"
    Error: 22 (Invalid argument)

Jul 19 16:38:21 Freedom-XXX samba[2161]:   exit_daemon: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
Jul 19 16:38:21 Freedom-XXX samba[2161]: root process[2161]: [2018/07/19 16:38:21.502718,  0] ../source4/smbd/server.c:618(binary_smbd_main)
Jul 19 16:38:21 Freedom-XXX samba[2161]: root process[2161]:   At this time the 'samba' binary should only be used for either:
Jul 19 16:38:21 Freedom-XXX samba[2161]: root process[2161]:   'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc e>
Jul 19 16:38:21 Freedom-XXX samba[2161]: root process[2161]:   You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Jul 19 16:38:21 Freedom-XXX samba[2161]: root process[2161]: [2018/07/19 16:38:21.502811,  0] ../lib/util/become_daemon.c:124(exit_daemon)
Jul 19 16:38:21 Freedom-XXX samba[2161]: root process[2161]:   exit_daemon: STATUS=daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
Jul 19 16:38:21 Freedom-XXX systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Jul 19 16:38:21 Freedom-XXX systemd[1]: samba.service: Failed with result 'exit-code'.
Jul 19 16:38:21 Freedom-XXX systemd[1]: Failed to start Samba AD Daemon.

Testparm

Freedom-XXX% testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
	dns proxy = No
	log file = /usr/local/samba/var/log.%m
	max log size = 50
	server role = standalone server
	server string = Samba Server
	socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
	usershare allow guests = Yes
	usershare max shares = 100
	usershare owner only = No
	usershare path = /var/lib/samba/usershare
	workgroup = MYGROUP
	idmap config * : backend = tdb
	use sendfile = Yes
	write cache size = 2097152


[homes]
	browseable = No
	comment = Home Directories
	read only = No


[printers]
	browseable = No
	comment = All Printers
	path = /usr/spool/samba
	printable = Yes

Last edited by sajmonella9 (2018-07-19 14:40:44)

Offline

#2 2018-07-19 16:55:23

loqs
Member
Registered: 2014-03-06
Posts: 17,310

Re: Samba Start Problem.

If you want a standalone server why are you starting samba.service instead of smb.service?

Offline

Board footer

Powered by FluxBB