[Bug 1038197] Re: samba changes in system-config-samba or /etc/smb.conf do not affect server

Clint Byrum clint at fewbar.com
Fri Sep 7 21:34:51 UTC 2012


Hello koanhead, thank you for taking the time to file a bug report and
help make Ubuntu better!

The workgroup name is not handled by smbd, but by nmbd. So in order to
enact changes in it, you must restart the nmbd service. There is, in
fact, a bug in system-config-samba, because it does this to detect if
samba is a service:


    def nmbIsService (self):
        # Check if nmb is its own service
        s = os.system ('/sbin/chkconfig --list nmb >& /dev/null')
        if s == 0:
            return True
        else:
            return False

This will fail on Ubuntu because chkconfig does not exist. Thus, changes
which affect nmbd will not be picked up in system-config-samba. I'll
open a task against that package for that fix. For samba, everything is
working correctly (I just verified this), you just have to restart nmbd
with

sudo service nmbd restart

As to your other question, I have no problem setting up a globally
readable guest-capable read-only share in smb.conf like this:

[readall]
	path = /mnt/readall
	guest ok = Yes
	locking = No


** Package changed: samba (Ubuntu) => system-config-samba (Ubuntu)

** Changed in: system-config-samba (Ubuntu)
   Importance: Undecided => High

** Changed in: system-config-samba (Ubuntu)
       Status: New => Triaged

** Summary changed:

- samba changes in system-config-samba or /etc/smb.conf do not affect server
+ changes in system-config-samba do not affect nmbd

-- 
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/1038197

Title:
  changes in system-config-samba do not affect nmbd

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



More information about the Ubuntu-server-bugs mailing list