You are not logged in.

#1 2012-12-11 03:53:15

barronmo
Member
Registered: 2012-08-21
Posts: 55

Can't get samba to start

Arch 3.6.6-1
Samba 3.6.9-1
using systemd

The following fails with no output.

sudo systemctl start smbd.service nmbd.service
systemctl status smbd.service:

smbd.service - Samba SMB/CIFS server
	  Loaded: loaded (/usr/lib/systemd/system/smbd.service; disabled)
	  Active: failed (Result: exit-code) since Mon, 2012-12-10 15:32:39 CST; 2min 19s ago
	 Process: 19013 ExecStart=/usr/sbin/smbd -F (code=exited, status=1/FAILURE)
	  CGroup: name=systemd:/system/smbd.service

I made sure the .pid files exist.  Also confirmed my hostname is set up using

 hostnamectl set-hostname archdesktop

 

Still no luck.  Any advice on getting Samba working?  The smb.conf file I am using is the default file.  I did set up SWAT but haven't used it other than look at the home page in my browser.  Thanks.

Mike

Last edited by barronmo (2012-12-11 03:54:08)

Offline

#2 2012-12-11 03:56:54

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Can't get samba to start

I think it is great you are trying to indicate what you did.  But I think the details of what you actually configured might help.  Like what is actually in your smb.conf.  I have never used this swat that you speak of.  Is there a reason why you just didn't edit the config file itself?  It is very well commented and the defaults are pretty sane.

Offline

#3 2012-12-11 14:57:22

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Can't get samba to start

Here are the contents of my smb.conf:

[global]
   workgroup = MYGROUP
   server string = Samba Server
   security = user
   load printers = yes
   log file = /var/log/samba/%m.log
   max log size = 50
   dns proxy = no 

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   writable = no
   printable = yes

Offline

#4 2012-12-11 15:42:29

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Can't get samba to start

I was looking at several log files in /var/log/samba and found the following in log.smbd

[2012/12/11 03:38:43,  0] smbd/server.c:1026(main)
  smbd version 3.6.9 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011

Systemctl status is still showing the failure msg listed in my first post.

Offline

#5 2012-12-12 01:56:12

barronmo
Member
Registered: 2012-08-21
Posts: 55

Re: Can't get samba to start

Not sure why the systemctl status smbd/nmbd.service output says "failed" but samba seems to be functioning correctly for me at this point.

Offline

#6 2012-12-12 03:20:40

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Can't get samba to start

Backup your smb.conf file, and then use the example file that ships with the package and see if that works. 

Also, it is great that you have found that it tells you at it failed.  But how about any information from the journal. If you don't provide any information about what is going on, you are never going to get real help.  That is why there have been bearly no responses to this thread.  I have simply tried stabbing in the dark here.

Offline

#7 2012-12-12 13:26:36

robug
Member
Registered: 2010-11-17
Posts: 28

Re: Can't get samba to start

smbd.service is supposed to start after network.target
maybe it isn't loaded?
it caused me some problems in the past

Offline

Board footer

Powered by FluxBB