#26 smb4k unable to parse the smb.conf

New tickets
closed
None
2014-08-21
2012-10-18
No

Hello, I wanted to test my Samba shares using smb4k.
I was unable to do so as it errors parsing the smb.conf. It does show my mounted samba share after showing the error.
Here is my smb.conf
[global]
workgroup = MSHOME
server string = Samba Server RajHome2 Version %v
log file = /var/log/samba/log.%m
max log size = 50
wins support = Yes
idmap config * : backend = tdb
hosts allow = 127., 192.168.1.
cups options = raw

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
print ok = Yes
browseable = No

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0700
directory mask = 0700
browseable = No

[public]
comment = My Samba Share
path = /var/public
read only = No
guest ok = Yes

[h]
comment = The home directories
path = /home
read only = No
guest ok = Yes
fstype = samba

[julie]
comment = Julie Home
path = /home/julie
read only = No
guest ok = Yes
fstype = samba

Here is the output from testparm:

Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[homes]"
Processing section "[public]"
Processing section "[h]"
Processing section "[julie]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
workgroup = MSHOME
server string = Samba Server RajHome2 Version %v
log file = /var/log/samba/log.%m
max log size = 50
wins support = Yes
idmap config * : backend = tdb
hosts allow = 127., 192.168.1.
cups options = raw

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
print ok = Yes
browseable = No

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0700
directory mask = 0700
browseable = No

[public]
comment = My Samba Share
path = /var/public
read only = No
guest ok = Yes

[h]
comment = The home directories
path = /home
read only = No
guest ok = Yes
fstype = samba

[julie]
comment = Julie Home
path = /home/julie
read only = No
guest ok = Yes
fstype = samba

Any ideas? Raj Upadhyaya

Reproducible: Always
Steps to Reproduce:
1. Modify the smb.conf using swat web app
2. Restart samba with services to make sure it loads ok.
3. Start smb4k Actual Results: smb4k starts, doesn't recognize the shares on either system. Finds a share that is currently mounted. Expected Results: Should find shares through explorer.

uname -a Linux rajhome2 3.6.2 #1 SMP Sun Oct 14 13:51:01 CDT 2012 i686 i686 i386 GNU/Linux

Related

Tickets: #26

Discussion

  • Alexander Reinholdt

    What does the error message say? Can you please provide a screenshot?

     
  • Alexander Reinholdt

    This error message is reported by the nmblookup command that is used by Smb4K to retrieve the list of domains. So, it is not directly a Smb4K problem, but Samba has issues with your smb.conf file. That's a bit strange because testparm does not show any error.

    To check what might be wrong, can you please run the following command in a shell:

    $ nmblookup -W <your_domain> -n <your_netbios_name> -M -- -
    

    If I'm correct, this should also give an error.

    By the way, what are the permissions of the smb.conf file? In my case they are like this:

    -rw-rw-r-- 1 root adm 943 Okt 19 20:44 /etc/samba/smb.conf
    

    I changed the original group from root to adm and added write permissions for the group to be able to modify the contents as normal user via swat.

     
  • Raj A. Upadhyaya

    $ nmblookup -W mshome -n mshome -M -- -
    Can't load /etc/samba/smb.conf - run testparm to debug it
    querying MSBROWSE on 192.168.1.255
    name_query failed to find name MSBROWSE#01

    Yes, this gave me the above error.

    By the way, what are the permissions of the smb.conf file?
    $ ls -al /etc/samba/smb.conf
    ls: cannot access /etc/samba/smb.conf: Permission denied
    $ su -
    Password:

    ls -al /etc/samba/smb.conf

    -rw-r--r--. 1 root root 929 Oct 18 20:40 /etc/samba/smb.conf

    Here are my permissions.

    I changed the permissions, and tried again.
    $ ls -al /etc/samba/smb.conf
    -rw-rw-rw-. 1 root adm 929 Oct 18 20:40 /etc/samba/smb.conf

    Thanks for your help. I hope this helps you get to the root cause.

    • Raj
     
    Attachments
  • Alexander Reinholdt

    Is your problem solved or do you still see this behavior.

     
  • Raj A. Upadhyaya

    It is still broken, but I have kind of given up on SMB4k. I haven't run
    it in awhile. Since we last spoke, I have upgraded the kernel to

    Linux rajhome2 3.7.1 #1 SMP Tue Dec 18 12:40:27 CST 2012 i686 i686 i386
    GNU/Linux

    I currently have

    samba.i686 2:3.6.9-96.fc17.1
    smb4k.i686 1.0.4-1.fc17

    installed.

    Regards,

    Raj Upadhyaya

    On Fri, 2012-12-21 at 13:51 +0000, Alexander Reinholdt wrote:

    Is your problem solved or do you still see this behavior.


    [tickets:#26] smb4k unable to parse the smb.conf

    Status: open
    Created: Thu Oct 18, 2012 12:53 PM UTC by Raj Upadhyaya
    Last Updated: Sun Oct 21, 2012 03:49 PM UTC
    Owner: Alexander Reinholdt

    Hello, I wanted to test my Samba shares using smb4k.
    I was unable to do so as it errors parsing the smb.conf. It does show
    my mounted samba share after showing the error.
    Here is my smb.conf
    [global]
    workgroup = MSHOME
    server string = Samba Server RajHome2 Version %v
    log file = /var/log/samba/log.%m
    max log size = 50
    wins support = Yes
    idmap config * : backend = tdb
    hosts allow = 127., 192.168.1.
    cups options = raw

    [printers]
    comment = All Printers
    path = /var/spool/samba
    printable = Yes
    print ok = Yes
    browseable = No

    [homes]
    comment = Home Directories
    valid users = %S
    read only = No
    create mask = 0700
    directory mask = 0700
    browseable = No

    [public]
    comment = My Samba Share
    path = /var/public
    read only = No
    guest ok = Yes

    [h]
    comment = The home directories
    path = /home
    read only = No
    guest ok = Yes
    fstype = samba

    [julie]
    comment = Julie Home
    path = /home/julie
    read only = No
    guest ok = Yes
    fstype = samba

    Here is the output from testparm:

    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit
    (16384)
    Processing section "[printers]"
    Processing section "[homes]"
    Processing section "[public]"
    Processing section "[h]"
    Processing section "[julie]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions

    [global]
    workgroup = MSHOME
    server string = Samba Server RajHome2 Version %v
    log file = /var/log/samba/log.%m
    max log size = 50
    wins support = Yes
    idmap config * : backend = tdb
    hosts allow = 127., 192.168.1.
    cups options = raw

    [printers]
    comment = All Printers
    path = /var/spool/samba
    printable = Yes
    print ok = Yes
    browseable = No

    [homes]
    comment = Home Directories
    valid users = %S
    read only = No
    create mask = 0700
    directory mask = 0700
    browseable = No

    [public]
    comment = My Samba Share
    path = /var/public
    read only = No
    guest ok = Yes

    [h]
    comment = The home directories
    path = /home
    read only = No
    guest ok = Yes
    fstype = samba

    [julie]
    comment = Julie Home
    path = /home/julie
    read only = No
    guest ok = Yes
    fstype = samba

    Any ideas? Raj Upadhyaya

    Reproducible: Always
    Steps to Reproduce:
    1. Modify the smb.conf using swat web app
    2. Restart samba with services to make sure it loads ok.
    3. Start smb4k Actual Results: smb4k starts, doesn't recognize the
    shares on either system. Finds a share that is currently mounted.
    Expected Results: Should find shares through explorer.

    uname -a Linux rajhome2 3.6.2 #1 SMP Sun Oct 14 13:51:01 CDT 2012 i686
    i686 i386 GNU/Linux


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/smb4k/tickets/26/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/prefs/

     

    Related

    Tickets: #26

  • Alexander Reinholdt

    I installed Fedora 17 in VirtualBox virtual machine and Samba and Smb4K run without problems. Especially, the parse error you experienced does not occur. However, I haven't tried to modify the smb.conf file with swat yet. Maybe this will trigger the error. Should that be the case, the problem lies with Samba/swat and not Smb4K...

     
  • Alexander Reinholdt

    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks