smbd starts and dies instantly
Hi, I have a ubuntu 14.04 LTS based headless server that has been running my mythtv-backend. It is also a file server using samba.
All of a sudden today the smbd service stopped working and refuses to start. Clues are few: after a reboot dmesg | grep smbd gives me Code:
[ 17.799737] init: smbd main process (914) terminated with status 1 Code:
smbd stop/ waiting Code:
smbd start/running, process 4339 /var/crash is empty, i.e. there are no crash logs /var/log/samba/log.smbd is empty Other services like nmbd, mysql, mythtv, apache2, vnc etc are running OK. I've spent most of the day on this but have hit a brick wall. If anyone has any ideas how to the smbd service going again I'd be most grateful. The alternative is a clean re-install, I suppose. |
Hi,
What about the content of /var/log/messages? |
Exactly the same problem here. Additional points:
* samba was running (for years) until a standard aptitude safe-upgrade yesterday (which upgraded the samba packages). * the upgrade updated the timestamp on smb.conf, but I can't see that anything was changed in the file. * /var/log/messages is empty, nothing in the samba logs (that I can find) and syslog just shows smbd stopping, exactly as in the original post. Update -- through trial and error (checking with a vanilla smb.conf and then systematically working through the existing smb.conf): the problem seems to have been security = SHARE. Changed this to security = user and everything seems to be as before. Note to self: should really try to find out *why*, but if I'm lucky this will just now work until the next panic, which on average would seem to be about 5 years. |
Hi,
Normally new packages try to do their best to not "disturb" existing configuration files. Do you have any configuration file such as smb.conf.rpmsave or just launch updatedb ; locate smb.conf to see everything similar. |
@pnm, Thank you, had the same problem, working now.
Looks like there was a security update https://launchpad.net/ubuntu/+source...buntu0.14.04.2 They made it so secure it wouldn't even start and no logs to go off at all. |
@pnm, the security = user didn't work for me.
@Magnus_J, I can confirm it was the samba update that I ran with apt-get update this morning. |
This may be useful:
http://ubuntuforums.org/showthread.php?t=1962617 I have an extremely simple setup (just a single public share) and the other bits connected to security = user were obviously already in place or not needed, so that was the single change necessary in my case. I copied in the vanilla configuation file here https://www.howtoforge.com/samba-ser...untu-14.04-lts to check that the thing worked at all before copying back "my" file to start the process of elimination. |
@FrizzledOldBut I just deleted the security line completely. Shutdown and restarted services and it started working again.
|
Quote:
|
Quote:
I'm starting to think that Linux et al is designed by a bunch of sadists, but many thanks to you and the others for easing the pain at this end :-) Cheers |
When this sort of thing happens it can seem so (the sadists comment).
On the other hand -- Samba was a simple solution to a specific need and easy enough to configure about 15 years ago, when security-wise the world was a very different place. It's worked more or less without problems since, in spite of -- I now know -- deprecated config values for about the last five years. In that perspective I can live with today's hour of panic! |
Quote:
|
Hi to all, for me the fix was to chmod -R 0700 /var/lib/samba
/var was mounted in another location this was the last log [2016/05/27 10:57:44.913942, 0] ../lib/util/util.c:285(directory_create_or_exist_strict) invalid permissions on directory '/var/lib/samba/private/msg.sock': has 0755 should be 0700 [2016/05/27 22:54:12.217808, 0] ../lib/util/util.c:285(directory_create_or_exist_strict) invalid permissions on directory '/var/lib/samba/private/msg.sock': has 0755 should be 0700 [2016/05/27 23:20:18.981385, 0] ../lib/util/util.c:285(directory_create_or_exist_strict) invalid permissions on directory '/var/lib/samba/private/msg.sock': has 0755 should be 0700 [2016/05/27 23:21:01.022978, 0] ../lib/util/util.c:285(directory_create_or_exist_strict) invalid permissions on directory '/var/lib/samba/private/msg.sock': has 0755 should be 0700 [2016/05/27 23:25:53.501980, 0] ../lib/util/util.c:285(directory_create_or_exist_strict) invalid permissions on directory '/var/lib/samba/private/msg.sock': has 0755 should be 0700 [2016/05/27 23:33:00.381323, 0] ../lib/util/util.c:285(directory_create_or_exist_strict) invalid permissions on directory '/var/lib/samba/private/msg.sock': has 0755 should be 0700 |
Quote:
|
All times are GMT -5. The time now is 07:56 AM. |