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.
~
About this post
- Posted
- Archived
- Score
- 0 · 45% up
- Kind
- Text
- ID
- kr34ky
6 comments
Deleted before we saved it.
I just installed Samba myself I am having the same issue.
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.
I've had the same problem and my smb.conf has not changed.
I "fixed" it by removing samba and deleting all conf files and installing it again, smb is working fine now