You are not logged in.

#1 2019-04-30 01:47:44

srnty
Member
Registered: 2012-09-21
Posts: 24

Freshly Installed Samba Doesn't Work

# systemctl start samba

fails.

# systemctl status samba

reads:

samba.service - Samba AD Daemon
   Loaded: loaded (/usr/lib/systemd/system/samba.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2019-04-29 18:44:04 PDT; 10s ago
     Docs: man:samba(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 4288 ExecStart=/usr/bin/samba --foreground --no-process-group $SAMBAOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 4288 (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)

Apr 29 18:44:04 hostname samba[4288]: root process[4288]:   Copyright Andrew Tridgell and the Samba Team 1992-2019
Apr 29 18:44:04 hostname samba[4288]: root process[4288]: [2019/04/29 18:44:04.355334,  0] ../../source4/smbd/server.c:743(binary_smbd_main)
Apr 29 18:44:04 hostname samba[4288]: root process[4288]:   At this time the 'samba' binary should only be used for either:
Apr 29 18:44:04 hostname systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Apr 29 18:44:04 hostname samba[4288]: root process[4288]:   'server role = active directory domain controller' or to access the ntvfs file server with 'server services = +smb' or the rpc proxy with>
Apr 29 18:44:04 hostname systemd[1]: samba.service: Failed with result 'exit-code'.
Apr 29 18:44:04 hostname samba[4288]: root process[4288]:   You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Apr 29 18:44:04 hostname systemd[1]: Failed to start Samba AD Daemon.
Apr 29 18:44:04 hostname samba[4288]: root process[4288]: [2019/04/29 18:44:04.355551,  0] ../../lib/util/become_daemon.c:122(exit_daemon)
Apr 29 18:44:04 hostname samba[4288]: root process[4288]:   exit_daemon: daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details, error code 22

This happens with or without an smb.conf

Offline

#2 2019-04-30 06:40:32

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Freshly Installed Samba Doesn't Work

Both the wiki and your error message clearly state what you're doing wrong.

Closing - For deletion.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB