[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2015-06-17 Thread Rolf Leggewie
lucid has seen the end of its life and is no longer receiving any
updates. Marking the lucid task for this ticket as Won't Fix.

** Changed in: samba (Ubuntu Lucid)
   Status: Confirmed = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2014-12-03 Thread Rolf Leggewie
maverick has seen the end of its life and is no longer receiving any
updates. Marking the maverick task for this ticket as Won't Fix.

** Changed in: samba (Ubuntu Maverick)
   Status: Triaged = Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2013-07-10 Thread Dan Corso
Hi guys,

try this... replace the start on line with:

start on (started smbd)

it tells upstart to respect priorities (worked for me).

Bye,
Daniele

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2012-06-27 Thread Aubrey McIntosh
This bug affects me.  I am running 10.04 (LTS) on an Oracle VM
VirtualBox.  I am also setting up a ipv6 tunnel with Hurricane Electric,
so I am fiddling with /etc/NetworkManager/{interfaces, system-
connections/'Auto eth1'}  /etc/network/interfaces.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2012-05-26 Thread Vasya Pupkin
Can someone at least tell me how I can debug this? There is absolutely
nothing in logs. nmbd just does not start even with start on (local-
filesystems) sometimes. smbd starts, nmbd doesn't.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2012-05-18 Thread Vasya Pupkin
Yesterday after reboot neither smbd, nor nmbd started. There was nothing
in logs. Ubuntu server is such a failure.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2012-05-18 Thread Vasya Pupkin
After another reboot, smbd started, nmbd didn't, but this time there was
a message in log:

May 18 18:27:37 shadow-server init: nmbd pre-start process (882)
terminated with status 1

After one more reboot both smbd and nmbd startd. Can someone finally fix
this? Can this god damn init be more strict on starting services? And at
least provide a good reason why some service did not start, like it is
done in Windows for 15 years now?!

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2012-04-27 Thread Vasya Pupkin
Few days ago nmbd stopped starting on boot for me. I did not change
anything at all.

===
user@host:~$ cat /etc/init/nmbd.conf
description NetBIOS name server
author  Steve Langasek steve.langa...@ubuntu.com

start on (local-filesystems and net-device-up IFACE=eth0)
stop on runlevel [!2345]

expect fork
respawn

pre-start script
NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 
2/dev/null`

[ x$NMBD_DISABLED = xYes ]  { stop; exit 0; }

install -o root -g root -m 755 -d /var/run/samba
end script

exec nmbd -D
===

This was working fine since I changed start on thing as described in
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878 bug.

I have nothing in logs that could give me a single hint why it's not
starting. This bug is obviously not fixed.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2012-04-27 Thread Vasya Pupkin
Also, sometimes it starts, sometimes not.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2012-04-27 Thread Vasya Pupkin
I added some debug into /etc/init/nmbd.conf so it looks like this:

===
description NetBIOS name server
author  Steve Langasek steve.langa...@ubuntu.com

start on (local-filesystems and net-device-up IFACE=eth0)
stop on runlevel [!2345]

expect fork
respawn

pre-start script
NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 
2/dev/null`
echo `date` $NMBD_DISABLED /tmp/upstart-nmdb.log

[ x$NMBD_DISABLED = xYes ]  { stop; exit 0; }

install -o root -g root -m 755 -d /var/run/samba
end script

exec nmbd -D
===

I was suspecting testparm to return something wrong, but instead, when I
rebooted few times and nmbd didn't start again, I didn't even have /tmp
/upstart-nmdb.log file which means it didn't hit pre-start script
section. I have no idea how can that be. Both smbd.conf and nmbd.conf
have start on (local-filesystems and net-device-up IFACE=eth0), but
somehow first gets started and second doesn't.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2012-04-27 Thread Vasya Pupkin
Changing to start on (local-filesystems) did not help, still not
starting.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2012-04-27 Thread Vasya Pupkin
Some more testing revealed that if I comment out user's cron @reboot job
that starts two virtualbox machines, nmbd starts. So I guess upstart
fails to continue starting daemons if there is a high system load at
boot time.

This makes me very sad. User job can affect server's start up... I have
these virtual machines since 2009 but only few days ago it started to
happen, so I blame latest kernel update.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-10-07 Thread camden lindsay
I just hit this bug, after updating samba to start after eth0 was up because of 
bug 
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878


dylan@strut-google-server:~$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION=Ubuntu 10.04.3 LTS
dylan@strut-google-server:~$ cat /tmp/upstart-nmbd.log 
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section [Strut Share]
Processing section [printers]
Processing section [print$]
Loaded services file OK.
ERROR: lock directory /var/run/samba does not exist
ERROR: pid directory /var/run/samba does not exist
dylan@strut-google-server:~$

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-07-29 Thread Launchpad Bug Tracker
** Changed in: samba (Ubuntu Lucid)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-07-29 Thread Alroger Filho
Geez, isn' t there a META issue function in launchpad?
nmbd doesn' t startup since 9.04, and now trying to really fix it, without 
rc.local delayed work arounds, I found a fix for each version of Ubuntu server. 
Bugs since 2009.

Anyone know why the samba init.d got split up into smbd and nmbd? It all
worked when it was just samba.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-04-04 Thread Cypher2
I fixed the nmbd startup issue on natty and maverick!

It has to do with the init scrip at /etc/init/nmbd.conf

The start line needs to state start on local-filesystems ONLY!

The loopback ethernet interfaces start too late to satisfy the
chronological dependency for nmbd to load as process...

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-04-04 Thread Jelmer Vernooij
Please open a different bug report; although it's related, it's a
different issue.

Nice catch, btw.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-04-04 Thread Cypher2
oki doki, bug registered as #750786 for natty!

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-03-27 Thread Cypher2
Still happening in natty amd64

I have to start nmbd manually for full network share (load and
access)...

using the mkdir -p fix did not resolve...

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-03-27 Thread Jelmer Vernooij
On Sun, 2011-03-27 at 18:23 +, Cypher2 wrote:
 Still happening in natty amd64
 
 I have to start nmbd manually for full network share (load and
 access)...
 
 using the mkdir -p fix did not resolve...
I suspect you're hitting a different issue, please file a separate bug report.

Cheers,

Jelmer

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-03-27 Thread Cypher2
actually no.. same issue: when i start the system, only smbd is loaded as
process. when looking at /var/run/samba it is active and populated with no
nmbd PID file. only when I switch to console and run 'sudo start nmbd' that
it loads a process and assigns PID to it.

when I restart or shutdown system and boot again.. nmbd isn't there
anymore

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-03-06 Thread Paul Tansom
Is there a fix for 10.04 LTS, which only runs 2:3.4.7~dfsg-1ubuntu3.4? I
don't often reboot my server, but invariably forget to check that nmbd
is running when I do!

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-03-06 Thread Jelmer Vernooij
On Sun, 2011-03-06 at 20:49 +, Paul Tansom wrote:
 Is there a fix for 10.04 LTS, which only runs 2:3.4.7~dfsg-1ubuntu3.4? I
 don't often reboot my server, but invariably forget to check that nmbd
 is running when I do!
There is no fix for Maverick yet, but according to the Launchpad page
Chuck will backport a fix to Maverick.

Cheers,

Jelmer

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-03-05 Thread giox069
I'm using a wireless connection with wicd (wlan interface is wlan0). Adding 
mkdir -p /var/run/samba does not solve the problem.
Changing
  start on (local-filesystems and net-device-up IFACE!=lo)
to
  start on (local-filesystems)
in /etc/init/nmbd.conf fixes it and nmbd starts. But this is not the right way 
to fix it, because there are other services which depends on net-device-up.

I think it's wicd not emitting net-device-up when my wlan0 comes up.
But... how can I check/confirm it ?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-03-05 Thread Jelmer Vernooij
Hi giox069,

That's a different issue than this bug (which is already fixed). Can you
please file a separate bug report about that?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-03-05 Thread Jelmer Vernooij
Kylepablo, this bug was fixed in 2:3.5.6~dfsg-4ubuntu2, so a version
newer than what you are running.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-03-05 Thread giox069
@Jelmer: ok, I will do further investigation on how wicd works and then
file a separate bug report.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-01-27 Thread Kylepablo
This bug is still present for me. I have to do nmbd -D manually.

Ubuntu 10.10
samba2:3.5.4~dfsg-1ub 

nmbd.conf is attached.

** Attachment added: nmbd.conf
   
https://bugs.launchpad.net/ubuntu/lucid/+source/samba/+bug/596064/+attachment/1811589/+files/nmbd.conf

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-01-27 Thread Kylepablo
Confirmed. Adding mkdir -p /var/run/samba just after the pre-start
script line of /etc/init/nmbd.conf fixes it.

Ubuntu 10.10
samba 2:3.5.4~dfsg-1ub

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-01-26 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/samba

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-01-25 Thread Launchpad Bug Tracker
** Branch linked: lp:~jelmer/samba/596064-nmb-fails-to-start

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-01-25 Thread Launchpad Bug Tracker
This bug was fixed in the package samba - 2:3.5.6~dfsg-4ubuntu2

---
samba (2:3.5.6~dfsg-4ubuntu2) natty; urgency=low

  * debian/samba.nmbd.upstart: create /var/run/samba directory before running
testparm. Fixes start-up of nmb after boot. (LP: #596064)
Thanks to Jelmer Vernooij.
 -- Chuck Short zul...@ubuntu.com   Tue, 25 Jan 2011 10:09:33 -0500

** Changed in: samba (Ubuntu)
   Status: Triaged = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2011-01-24 Thread Jelmer Vernooij
** Changed in: samba (Ubuntu)
 Assignee: Chuck Short (zulcss) = Jelmer Vernooij (jelmer)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-12-10 Thread Jean-Michel Dault
It should be:
mkdir -p /var/run/samba

Otherwise if the directory already exists it won't be able to start. So
mkdir -p will start in all conditions.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart 

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-12-10 Thread Jelmer Vernooij
On Fri, 2010-12-10 at 20:52 +, Jean-Michel Dault wrote:
 It should be:
 mkdir -p /var/run/samba
 
 Otherwise if the directory already exists it won't be able to start. So
 mkdir -p will start in all conditions.
I'm pretty sure install -d exits with success if the directory already
exists, too.

Cheers,

Jelmer

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.
https://bugs.launchpad.net/bugs/596064

Title:
  nmbd fails to start on boot - problem with upstart 

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-11-10 Thread Jelmer Vernooij
What appears to be happening is that the first time nmbd gets run
testparm fails (because pid dir /var/run/samba doesn't exist yet) so
nmbd is not started.

After that smbd gets run and its pre-init will create /var/run/samba. So
the next time nmbd's pre-init script will work.

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-11-10 Thread Jelmer Vernooij
It looks like the creation of /var/run/samba should happen earlier in
the script.

What about the attached patch?

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-10-13 Thread Max-Ulrich Farber
I can reproduce it on Lucid and Maverick under the following conditions:

 - the network is a WLAN
 - the connection is made by Network Manager or WICD

I don't know what the condition net-device-up IFACE!=lo in
/etc/init/nmbd.conf is really needed for. Can it be recommended to leave
it out and to change the line to start on local-filesystems, as it is
in /etc/init/smbd.conf? Could that leed to some inconveniences?

A workaround is a post-connection script in WICD with the command
service nmbd start.

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-10-01 Thread Chuck Short
I havent been able to reproduce this on maverick yet.

chuck

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-10-01 Thread Dave Walker
@Chuck, were you able to reproduce it on Lucid?  Do you consider this
was Fix Released for Maverick, somewhere along the cycle?

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-09-02 Thread Thierry Carrez
** Tags added: server-mrs

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-08-26 Thread Thierry Carrez
** Changed in: samba (Ubuntu)
   Importance: High = Medium

** Changed in: samba (Ubuntu)
 Assignee: (unassigned) = Chuck Short (zulcss)

** Changed in: samba (Ubuntu Lucid)
 Assignee: Chuck Short (zulcss) = (unassigned)

** Also affects: samba (Ubuntu Maverick)
   Importance: Medium
 Assignee: Chuck Short (zulcss)
   Status: Triaged

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-08-21 Thread Dunkirk
I tested what my /etc/init/nmbd.conf was doing at the command line:

---
r...@server2:/var/log# /usr/bin/testparm -s --parameter-name='disable netbios'
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section [netlogon]
Processing section [profiles]
Processing section [homes]
Processing section [users]
Processing section [groups]
Processing section [pdf]
Processing section [printers]
Processing section [print$]
.
.
.
Loaded services file OK.
ERROR: the 'unix password sync' parameter is set and there is no valid 'passwd 
program' parameter.
No
---

I simply got rid of the 'unix password sync' option in my smb.conf file
(I wasn't really using it anyway), and everything started working again.
Seems like any error in the Samba config is causing an exit code from
testparm that's throwing off the stack of scripts that controls starting
the process.

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-08-06 Thread Thierry Carrez
Should probably be lumped together with bug 572410

** Also affects: samba (Ubuntu Lucid)
   Importance: Undecided
   Status: New

** Changed in: samba (Ubuntu Lucid)
 Assignee: (unassigned) = Chuck Short (zulcss)

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-07-27 Thread MURAKAMI
I experienced this (nmbd do not startup at boot), recently after
upgrading from ubuntu 9.10 server to 10.04 LTS.

The solution suggested in the Post#7 by Mr Abhishek Mukherjee worked. 
(Just adding the line mkdir /var/run/samba at just after the pre-start 
script line of /etc/init/nmbd.conf)

Regards.

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-07-02 Thread Thierry Carrez
Nice investigation, thanks!
nmbd would only start when its start is run after smbd's upstart script 
pre-start. We indeed need to fix that race.

** Changed in: samba (Ubuntu)
   Importance: Medium = High

** Changed in: samba (Ubuntu)
   Status: Incomplete = Triaged

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-07-02 Thread Chuck Short
Hi,

Can you test out samba_3.4.7~dfsg-1ubuntu4~test in
https://edge.launchpad.net/~zulcss/+archive/server-bug-fixes when it
gets built?

Thanks
chuck

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-06-27 Thread Abhishek Mukherjee
There is something interesting that happened after we changed the script
the way you had described. NMBD started at boot. After some
troubleshooting, we noticed the following errors in the /tmp/nmbd-
upstart.log

$ cat /tmp/nmbd-upstart.log 
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section [printers]
Processing section [print$]
Loaded services file OK.
ERROR: lock directory /var/run/samba does not exist
ERROR: pid directory /var/run/samba does not exist


This was only after we removed the date command, if I remember correctly. But 
the crux of the issue is that a race condition is stopping nmbd from starting. 
It so happens that samba and nmbd start up at the same time. The directory 
/var/run/samba is created by the samba service when its starting up. But samba 
service does that only after the command testparm -s --parameter-name='disable 
netbios' 2/tmp/nmbd-upstart.log has executed unsuccessfully. NMBD service 
stopped failing when we added date command in the script. The date command must 
have introduced the much needed delay which we couldn't introduce with the 
sleep 20 command. However we created the directory before the execution of 
the testparm command execution and that fixed the issue. This race condition 
should ideally be avoided by forcing nmbd to start up only after samba service 
has started successfully. I don't know how to do that in an upstart script. 
Please guide.

At present the pre start section of the script looks like this -

pre-start script
# No need to keep it now
#   date  /tmp/nmbd-upstart.log  

# Introduced mkdir to fix race condition
mkdir /var/run/samba 
NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 
2/tmp/nmbd-upstart.log`
[ x$NMBD_DISABLED = xYes ]  { stop; exit 0; }
install -o root -g root -m 755 -d /var/run/samba
end script

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-06-26 Thread aroonsurya
Here is the log

Sat Jun 26 17:31:19 IST 2010
Load smb config files from /etc/samba/smb.conf
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
Processing section [printers]
Processing section [print$]
Loaded services file OK.
Output is No

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-06-25 Thread Thierry Carrez
OK, so the issue seems to be that  testparm -s --parameter-
name='disable netbios'  sometimes fails (or returns 'Yes') when
started at boot-time. The start on (local-filesystems and net-device-up
IFACE!=lo) should however be late enough...

To confirm, could you try with:

pre-start script
  date  /tmp/nmbd-upstart.log
  NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 
2/tmp/nmbd-upstart.log`
  echo Output is $NMBD_DISABLED  /tmp/nmbd-upstart.log
  [ x$NMBD_DISABLED = xYes ]  { stop; exit 0; }
  install -o root -g root -m 755 -d /var/run/samba
end script

And post the resulting /tmp/nmbd-upstart.log when it fails ?

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-06-25 Thread Bret Towe
I played with the nmbd.conf script and changed the 2 lines that seem at fault
looks to of worked not done repeat tests

NMBD_DISABLED=`testparm -s --parameter-name=disable netbios 
2/tmp/nmbd-upstart.log`
[ $NMBD_DISABLED = Yes ]  { stop; exit 0; }

I don't think removing the x's from the second line is required but it
looks better

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-06-24 Thread aroonsurya
I and Abhishek are working in the same lab setup.
Here are the answers to U'r Q

$ testparm -s --parameter-name='disable netbios' 2/dev/null
$ echo $?

rka...@rka-29-desktop:~$ testparm -s --parameter-name='disable netbios' 
2/dev/null
No
rka...@rka-29-desktop:~$ echo $?
0

Also, on the machine that fail to start nmbd at boot, does starting up
nmbd manually after boot (sudo start nmbd) work with an uncommented
prestart script ?

Yes.

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-06-23 Thread Thierry Carrez
Those two lines are about checking if NetBIOS is disabled in smb.conf, and if 
yes, not start nmbd.
If it works reliably for you once you comment those lines, something must fail 
on this testparm check.

Could you try running the following (on one of the machines that fail if the 
check is enabled):
$ testparm -s --parameter-name='disable netbios' 2/dev/null
$ echo $?

Also, on the machine that fail to start nmbd at boot, does starting up
nmbd manually after boot (sudo start nmbd) work with an uncommented
prestart script ?

** Changed in: samba (Ubuntu)
   Importance: Undecided = Medium

** Changed in: samba (Ubuntu)
   Status: New = Incomplete

-- 
nmbd fails to start on boot - problem with upstart 
https://bugs.launchpad.net/bugs/596064
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 596064] Re: nmbd fails to start on boot - problem with upstart

2010-06-18 Thread Abhishek Mukherjee
No manual changes were made to samba configuration file. Here it goes.


#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
#  - When such options are commented with ;, the proposed setting
#differs from the default Samba behaviour
#  - When commented with #, the proposed setting is the default
#behaviour of Samba but the option is considered important
#enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# testparm to check that you have not made any basic syntactic
# errors.
# A well-established practice is to name the original file
# smb.conf.master and create the real config file with
# testparm -s smb.conf.master smb.conf
# This minimizes the size of the really used smb.conf file
# which, according to the Samba Team, impacts performance
# However, use this with caution if your smb.conf file contains nested
# include statements. See Debian bug #483187 for a case
# where using a master file is not a good idea.
#

#=== Global Settings ===

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
   server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
#   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast

 Networking 

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes


 Debugging/Accounting 

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Cap the size of the individual log files (in KiB).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
#   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


### Authentication ###

# security = user is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
#   security = user

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using. 
   passdb backend = tdbsam

   obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
   unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan 
ka...@informatik.tu-muenchen.de for
# sending the correct chat script for the passwd program in Debian Sarge).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* 
%n\n *password\supdated\ssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
   pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to