You are not logged in.

#1 2026-08-09 00:20:37

aminepro
Member
Registered: 2025-01-31
Posts: 124

Sometimes I can't get some services to start

I want to know why services fail to start, but specifically this one:

sudo systemctl start samba
Job for samba.service failed because the control process exited with error code.
See "systemctl status samba.service" and "journalctl -xeu samba.service" for details.

samba just stopped working
it would wouldn't fail because of the conf file, would it?

cat /etc/samba/smb.conf
[global]
   workgroup = WORKGROUP
   server string = Samba Server
   netbios name = samba
   security = share


[public]
   path = /home/amine/Downloads/ABDM/Compressed
   browseable= yes
   read only = yes
   writable = no
   guest ok = yes

the journal : https://paste.c-net.org/EconomicGorilla

Last edited by aminepro (2026-08-09 00:24:19)

Offline

#2 2026-08-09 01:15:09

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 765

Re: Sometimes I can't get some services to start

aminepro wrote:

sudo systemctl start samba
...
Aug 09 01:39:55 koko samba[4649]:   At this time the 'samba' binary should only be used for either:
Aug 09 01:39:55 koko samba[4649]:   'server role = active directory domain controller' or the rpc proxy with 'dcerpc endpoint servers = remote'

For file sharing you should run smb.service, not samba.service.

Offline

#3 2026-08-09 01:28:06

aminepro
Member
Registered: 2025-01-31
Posts: 124

Re: Sometimes I can't get some services to start

Ok, still

systemctl start smb
Job for smb.service failed because the control process exited with error code.
See "systemctl status smb.service" and "journalctl -xeu smb.service" for details.

journal: https://paste.c-net.org/HippiePatient

Last edited by aminepro (2026-08-09 01:31:26)

Offline

#4 2026-08-09 01:46:11

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 765

Re: Sometimes I can't get some services to start

Show /var/log/samba/log.smbd

Offline

#5 2026-08-09 11:42:31

aminepro
Member
Registered: 2025-01-31
Posts: 124

Re: Sometimes I can't get some services to start

cat /var/log/samba/log.smbd
[2026/08/09 02:25:35,  0] ../../lib/param/loadparm.c:1061(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'share' for parameter 'security'
Can't load /etc/samba/smb.conf - run testparm to debug it
smbd - Failed to load config file!
[2026/08/09 02:31:49,  0] ../../lib/param/loadparm.c:1061(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'share' for parameter 'security'
Can't load /etc/samba/smb.conf - run testparm to debug it
smbd - Failed to load config file!
Can't load /etc/samba/smb.conf - run testparm to debug it
smbd - Failed to load config file!
[2026/08/09 03:27:35,  0] ../../lib/param/loadparm.c:1061(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'share' for parameter 'security'
Can't load /etc/samba/smb.conf - run testparm to debug it
smbd - Failed to load config file!
[2026/08/09 03:30:31,  0] ../../lib/param/loadparm.c:1061(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'share' for parameter 'security'
Can't load /etc/samba/smb.conf - run testparm to debug it
smbd - Failed to load config file!
[2026/08/09 12:50:35,  0] ../../lib/param/loadparm.c:1061(lp_set_enum_parm)
  WARNING: Ignoring invalid value 'share' for parameter 'security'
Can't load /etc/samba/smb.conf - run testparm to debug it
smbd - Failed to load config file!

Thanks I fixed it, though I read it in this doc https://web.mit.edu/darwin/src/modules/ … ESTACCOUNT
using the official one then https://www.samba.org/samba/docs/curren … l/smb.conf

I'll add more later so I'm not marking this thread as solved yet (

Last edited by aminepro (2026-08-09 12:08:09)

Offline

#6 2026-08-09 12:10:20

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 765

Re: Sometimes I can't get some services to start

aminepro wrote:

Note at the bottom of that page:

VERSION
This man page is correct for version 2.2 of the Samba suite.

My advice is to always refer to the documentation that corresponds to the software version. https://man.archlinux.org/man/smb.conf.5

Offline

Board footer

Powered by FluxBB