Announcement

Collapse
No announcement yet.

Systemsettings -> Network settings Samba question (Bug hunting)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Systemsettings -> Network settings Samba question (Bug hunting)



    For some reason, when I make any changes in Network Settings that causes a 'reloading network settings' dialog to appear, the 'workgroup = nnn' line from my smb.conf file gets deleted. Otherwise, everything works fine.

    It appears to me that Network Settings has no business touching the smb.conf file since there is no samba entry in it. Should there be? There's just "Network Connections", "Proxy", "Connection Preferences", and "Zeroconf Service Descovery".

    Thanks for any assistance you can render!

    #2
    Re: Systemsettings -> Network settings Samba question (Bug hunting)

    Hmmm ... does using KDE's own Control Center ([Alt][F2] kdesu kcontrol) make any difference?

    Comment


      #3
      Re: Systemsettings -> Network settings Samba question (Bug hunting)

      First, I apologize for the long delay responding!

      Yes, Samba does appear in kcontrol but not in systemsettings! Also there are Bluetooth, Web Browser and Desktop Sharing entrys which are not present in systemsettings.

      However, making changes in kcontrol has the same effect. If I add a workgroup name with Samba (kcontrol), then change my, say, IP in Network Settings (kcontrol's), the workgroup name gets removed from /etc/samba/smb.conf.

      I had a side issue with Network Setting getting confused about the default gateway as well. I think this is due to my router/dsl modem which acts both as a normal router and as a straight pppoe modem. This causes both a ppp0 and a eth0 interface to be activated. In Network Settings->Network Interfaces only the eth0 network interface was shown and changeable. In Network Settings->Routes only the ppp0 interface was present and selectable which caused an error when changing the eth0 device. However, disabling ppp0 ('sudo ifconfig ppp0 down') seemed to fix this problem.

      After disabling ppp0 I tried again with the workgroup entry getting deleted and nothing had changed. I tried both kcontrol and systemsettings (manually editing smb.conf) and the problem was the same with both.

      The output from kcontrol looks fairly normal, but I'll go through it with a fine toothed comb.


      To summarize, it's looking like I have three problems:
      1) Some entries are missing from systemsettings, but those entries are present in kcontrol. Any idea where I would be looking for a problem here?
      2) Workgroup name setting gets removed when changing network settings. (Appears not to be affected by 1 or 3)
      3) Network settings getting confused when using stupid combined pppoe/router dsl modem (Siemens 6250).


      Finally, are there additional kde configuration files I should be looking at besides the one in $home/.kde/share/config? Thank you again for your time and consideration.

      Comment


        #4
        Re: Systemsettings -> Network settings Samba question (Bug hunting)

        Originally posted by moir
        However, making changes in kcontrol has the same effect.
        Looks as if someone had introduced a new bug to the system
        time for "Plan B" then: http://mange.dynalias.org/linux/gsambad/
        (but beware: I have not yet found the time to test this by myself).

        Originally posted by moir
        Some entries are missing from systemsettings, but those entries are present in kcontrol. Any idea where I would be looking for a problem here?
        In short: forget about Kubuntu's System Settings :P you won't neither need nor miss them.

        Comment


          #5
          Re: Systemsettings -> Network settings Samba question (Bug hunting)

          Oh, am I not the only one who's having this problem?

          Gsambad works just fine, though I don't mind editing smb.conf manually either. Actually the Samba entry in kcontrol works just fine too, it's just that when I change something that requires a "Reloading Network" dialog the workgroup line gets deleted.

          I have noticed that this may be related to how knetworkconf (the "Network Settings" module) communicates with the GST backend. When reading the network there is a <workgroup>TESTNAME</workgroup> line, but when knetworkconf generates the configuration script for GST it does not contain the <workgroup> line. I would expect it would just leave the entry unchanged in that case, but I really don't know enough about it yet. So it may be a problem with the backend.

          Thanks for the warning about systemsettings. Now how does one go about lobbying the kubuntu people to include the 'Save Password' option in kdesu??


          EDIT: That seems to be exactly what's going on. I created a file 'sudo /usr/share/apps/knetworkconf/backends/network-conf --get >tmp'. Then removed the <workgroup>TESTNAME</workgroup> line from tmp and ran 'sudo /usr/share/apps/knetworkconf/backends/network-conf --set <tmp'. Sure enough, the workgroup line in smb.conf disappeared. Then adding the <workgroup> line and rerunning network-conf --set <tmp put the line into smb.conf.
          Time to file a bug then?

          Comment


            #6
            Re: Systemsettings -&gt; Network settings Samba question (Bug hunting)

            Originally posted by moir
            Now how does one go about lobbying the kubuntu people to include the 'Save Password' option in kdesu?
            Rest assured: It's hazardous, ergo will it be done :P (and, yes, I am extreme in matters of system security).

            Comment


              #7
              Re: Systemsettings -&gt; Network settings Samba question (Bug hunting)

              It's not much trouble compiling it off the KDE source. Must remember to make a backup of the binary before an update overwrites it next time!

              Thanks for the help and continued assistance.

              Comment

              Working...
              X