Skip to content

Can't start Samba

systemctl start samba.service

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

systemctl status samba.service

● samba.service - Samba AD Daemon
     Loaded: loaded (/usr/lib/systemd/system/samba.service; enabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Tue 2021-01-05 14:29:52 -03; 14s ago
       Docs: man:samba(8)
             man:samba(7)
             man:smb.conf(5)
    Process: 73884 ExecStart=/usr/bin/samba --foreground --no-process-group $SAMBAOPTIONS (code=exited, status=1/FAILURE)
   Main PID: 73884 (code=exited, status=1/FAILURE)
     Status: "daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details"
      Error: 22 (Argumento inválido)

jan 05 14:29:51 archlinux samba[73884]:   daemon_status: daemon 'samba' : Starting process...
jan 05 14:29:52 archlinux samba[73884]: [2021/01/05 14:29:52.023125,  0] ../../source4/smbd/server.c:874(binary_smbd_main)
jan 05 14:29:52 archlinux samba[73884]:   At this time the 'samba' binary should only be used for either:
jan 05 14:29:52 archlinux samba[73884]:   'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with 'dcerpc endpoint servers = remote'
jan 05 14:29:52 archlinux samba[73884]:   You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
jan 05 14:29:52 archlinux samba[73884]: [2021/01/05 14:29:52.023206,  0] ../../lib/util/become_daemon.c:121(exit_daemon)
jan 05 14:29:52 archlinux samba[73884]:   exit_daemon: daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
jan 05 14:29:52 archlinux systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
jan 05 14:29:52 archlinux systemd[1]: samba.service: Failed with result 'exit-code'.
jan 05 14:29:52 archlinux systemd[1]: Failed to start Samba AD Daemon.
~
0 points5 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 45% up
Kind
Text
ID
kr34ky

Author

42
posts
86
comments
8
media
View profile

6 comments

unknown author

Deleted before we saved it.

3 points

I just installed Samba myself I am having the same issue.

2 points

Samba detected misconfigured 'server role' and exited.

1 points

Sir_not_sir, keep in mind that this failure is happening to many people becuase of an update and not because of a change in their smb.conf file.

Have you any idea why this might be the case? I have the same problem, have made no change to my smb.conf file and can't find any remedy in numerous posts about this problem.

2 points

I've had the same problem and my smb.conf has not changed.

1 points

I "fixed" it by removing samba and deleting all conf files and installing it again, smb is working fine now

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.