You are not logged in.

#1 2013-10-12 16:37:46

brianbaligad
Member
Registered: 2013-08-12
Posts: 22

Samba not starting

I'm unable to start samba with a minimal file sharing configuration.  nmbd starts but samba gives an odd message about the server role and then exits.
Samba Version 4.0.10
Kernel Version 3.11.3-1-ARCH

# systemctl status samba                                                                                                                                                                         
samba.service - Samba AD Daemon
   Loaded: loaded (/usr/lib/systemd/system/samba.service; disabled)
   Active: failed (Result: exit-code) since Sat 2013-10-12 09:14:46 PDT; 5s ago
  Process: 3400 ExecStart=/usr/bin/samba $SAMBAOPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 3401 (code=exited, status=1/FAILURE)

Oct 12 09:14:46 brianb-blk samba[3400]: [2013/10/12 09:14:46.340070,  0] ../source4/smbd/server.c:370(binary_smbd_main)
Oct 12 09:14:46 brianb-blk systemd[1]: Started Samba AD Daemon.
Oct 12 09:14:46 brianb-blk samba[3401]: [2013/10/12 09:14:46.445720,  0] ../source4/smbd/server.c:468(binary_smbd_main)
Oct 12 09:14:46 brianb-blk samba[3401]: At this time the 'samba' binary should only be used for either:
Oct 12 09:14:46 brianb-blk samba[3401]: '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'
Oct 12 09:14:46 brianb-blk samba[3401]: You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks
Oct 12 09:14:46 brianb-blk systemd[1]: samba.service: main process exited, code=exited, status=1/FAILURE
Oct 12 09:14:46 brianb-blk systemd[1]: Unit samba.service entered failed state.

smb.conf:

[global]
security = user
map to guest = Bad User
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50

I removed my shares just to try to get it to start.

Offline

#2 2013-10-12 16:45:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Samba not starting

Did you bother reading the error? "You should start smbd/nmbd/winbindd instead for domain member and standalone file server tasks" is pretty clear.

Offline

#3 2013-10-12 22:43:29

brianbaligad
Member
Registered: 2013-08-12
Posts: 22

Re: Samba not starting

Got it.  Thank you for pointing out my mistake.

Offline

Board footer

Powered by FluxBB