Noobie question: i cant start samba service it says that is failed to start samba ad daemon

testparm is ok. when i run systemctl status samba.service i get this

Oct 11 10:55:53 opi3636-80td samba[2886]: [2023/10/11 10:55:53.593929,  0] ../../source4/samba/server.c:863(binary_smbd_main)
Oct 11 10:55:53 opi3636-80td samba[2886]:   At this time the 'samba' binary should only be used for either:
Oct 11 10:55:53 opi3636-80td samba[2886]:   'server role = active directory domain controller' or the rpc proxy with 'dcerpc endpoint servers = remote'
Oct 11 10:55:53 opi3636-80td samba[2886]:   You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Oct 11 10:55:53 opi3636-80td samba[2886]: [2023/10/11 10:55:53.594086,  0] ../../lib/util/become_daemon.c:119(exit_daemon)
Oct 11 10:55:53 opi3636-80td samba[2886]:   exit_daemon: daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22
Oct 11 10:55:53 opi3636-80td systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Oct 11 10:55:53 opi3636-80td systemd[1]: samba.service: Failed with result 'exit-code'.
Oct 11 10:55:53 opi3636-80td systemd[1]: Failed to start Samba AD Daemon.

Hi @opi3636,

In the future, when posting terminal output, copy the output and paste it here, wrapped in three (3) backticks, before AND after the pasted text. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Sed
sollicitudin dolor
eget nisl elit id
condimentum
arcu erat varius
cursus sem quis eros.

Instead of like this:

Sed sollicitudin dolor eget nisl elit id condimentum arcu erat varius cursus sem quis eros.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby increasing legibility thus making it easier for those trying to provide assistance.

For more information, please see:

Please edit your post accordingly.

Please also note and heed: Forum Rules - Manjaro


Had you searched, you’d have found this as first result:

Note specifically the first and second replies:

and

Hope this helps!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.