Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Samba and dolphin

  1. #1

    Default Samba and dolphin

    Hopefully someone out there is able to help me fix the configuration of my simple home network. In this network, users connect to wireless router for access to the internet. Also attached to the router is a fileserver. It handles backups provides extra storage. Files on the fileserver are made accessible by samba/cifs for convenience. Since at least opensuse 12.1, the samba configuration is partially broken. These are the symptoms:

    * The fileserver can mount shared directories on itself, that is to say

    "mount.cfs //192.168.1.6/directory /mnt -o user=username,pass=password"

    works when performed on the computer with the 192.168.1.6 address.

    * Mounting shares on the fileserver using on another linux box (ip=192.168.1.12) using mount.cifs also works just fine.

    * Mapping of a shared drive on the fileserver from windows xp times out

    * Attempts to access the shares via dolphin using the smb:// protocol whether on the fileshare (192.168.1.6) or a linux client (192.168.1.12) fails even after providing username and password information. This may be the same or a different problem that mounting via windows xp.

    I have reviewed log files on the server and client to see if I can find any hints, but there is nothing. I have read the samba/cifs documentation for clues to tuning of smb.conf to no avail. Any ideas on what is wrong and the fixes?

    Thanks,

    cmrntnnr

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Samba and dolphin

    Quote Originally Posted by cmrntnnr View Post
    Hopefully someone out there is able to help me fix the configuration of my simple home network. In this network, users connect to wireless router for access to the internet. Also attached to the router is a fileserver. It handles backups provides extra storage. Files on the fileserver are made accessible by samba/cifs for convenience. Since at least opensuse 12.1, the samba configuration is partially broken. These are the symptoms:

    * The fileserver can mount shared directories on itself, that is to say

    "mount.cfs //192.168.1.6/directory /mnt -o user=username,pass=password"

    works when performed on the computer with the 192.168.1.6 address.

    * Mounting shares on the fileserver using on another linux box (ip=192.168.1.12) using mount.cifs also works just fine.

    * Mapping of a shared drive on the fileserver from windows xp times out

    * Attempts to access the shares via dolphin using the smb:// protocol whether on the fileshare (192.168.1.6) or a linux client (192.168.1.12) fails even after providing username and password information. This may be the same or a different problem that mounting via windows xp.

    I have reviewed log files on the server and client to see if I can find any hints, but there is nothing. I have read the samba/cifs documentation for clues to tuning of smb.conf to no avail. Any ideas on what is wrong and the fixes?

    Thanks,

    cmrntnnr
    So first and foremost, get my bash script SACT and use it to fix your Samba Setup problems. Read ALL the blog info and print it out if you need to do so: S.A.C.T. - Samba Automated Configuration Tool - Version 1.03 - Blogs - openSUSE Forums

    Next, forget about the need to make permanent network mounts and consider using on-fly-mounts, triggered by icons that runs Dolphin with the smb command. Permanent network connections (remote cifs mounts) made to other computers will slow down most file functions and unless you are making file copies every other task from a remote PC, its not really required. You need to decide if you are sharing user space or common folders, usable by all. As for Windows, its helpful to create the same Linux user names and passwords as on your Windows computer. For Windows 8, consider creating a local user as well as your Internet Login and use the local login for Samba when needed. If you really want file sharing to work, read my blog to the end and get the bash script.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: Samba and dolphin

    I see these as key points:
    • Also attached to the router is a fileserver.
    • Mapping of a shared drive on the fileserver from windows xp times out
    The file server looks like it is not configured appropriately.
    Other things you say regarding the Linux boxes point to samba on openSUSE being correctly configured, so at this stage I recommend that you don't fix it (because it's probably not broken).

    So then, about the "file server": Is it a USB drive attached to a port on the router and shered from the Linux code in the router? Is it a computer attached by wireless or ethernet wire to the router? Is it a NAS box attached to the router? Please describe the "file server" in terms of its physical nature, how it connects to the router and how it is configured to share "drives", including if it has an operating system and if it does, what form of networking is used therein.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  4. #4

    Default Re: Samba and dolphin

    It looks like more details about the layout of my fileserver and small network are in order. The fileserver is just a old laptop running opensuse 12.3. There is a large hard disk attached to it by USB. It is mounted onto /home at boot with fstab. User's directories are under /home as is typical. Each user on the network has an account on the fileserver, and their home directories are configured to be shared by samba.

    Here is where one of my problems shows up with just the fileserver. If I sit down and log directly into the fileserver, I can mount.cifs any of the user's home directories, again on the fileserver, to another directory also on the fileserver. The fileserver is also running kde 4.10. Attempts to access a user's directory with dolphin with the smb:// protocol dies. It just keeps asking for username and password without ever successful displaying the folder contents. There is a long delay between requests for username and password. It seems strange that mount.cifs works and smb:// does not.

    With regard to networking, the fileserver is attached by ethernet cable to a netgear wireless router. The fileserver and clients are all on the 192.168.1.x subnet. My personal laptop is running opensuse 12.2, and I can mount.cifs to the fileserver successfully. It is also running kde4.10. The smb:// protocol under dolphin has the same behavior as when executed on the fileserver, request for username and password but no folder contents. smb4k works just fine, too.

    It seems to based upon success with mount.cifs that the fileserver and client and configured properly. That connclusion is not backed up b by the behavior of the smb:// protocol in dolphin. Could there be a problem with smb:// in dolphin that is distributed with opensuse?

    The other issue is accessing the fileserver from windows xp. Attempts to map a user's folder on the fileserver timesout. It could either be the same problem as above or a second issue.

    Hope this additional information helps diagnose and solve this networking problem.

  5. #5
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Samba and dolphin

    Quote Originally Posted by cmrntnnr View Post
    It looks like more details about the layout of my fileserver and small network are in order. The fileserver is just a old laptop running opensuse 12.3. There is a large hard disk attached to it by USB. It is mounted onto /home at boot with fstab. User's directories are under /home as is typical. Each user on the network has an account on the fileserver, and their home directories are configured to be shared by samba.

    Here is where one of my problems shows up with just the fileserver. If I sit down and log directly into the fileserver, I can mount.cifs any of the user's home directories, again on the fileserver, to another directory also on the fileserver. The fileserver is also running kde 4.10. Attempts to access a user's directory with dolphin with the smb:// protocol dies. It just keeps asking for username and password without ever successful displaying the folder contents. There is a long delay between requests for username and password. It seems strange that mount.cifs works and smb:// does not.

    With regard to networking, the fileserver is attached by ethernet cable to a netgear wireless router. The fileserver and clients are all on the 192.168.1.x subnet. My personal laptop is running opensuse 12.2, and I can mount.cifs to the fileserver successfully. It is also running kde4.10. The smb:// protocol under dolphin has the same behavior as when executed on the fileserver, request for username and password but no folder contents. smb4k works just fine, too.

    It seems to based upon success with mount.cifs that the fileserver and client and configured properly. That connclusion is not backed up b by the behavior of the smb:// protocol in dolphin. Could there be a problem with smb:// in dolphin that is distributed with opensuse?

    The other issue is accessing the fileserver from windows xp. Attempts to map a user's folder on the fileserver timesout. It could either be the same problem as above or a second issue.

    Hope this additional information helps diagnose and solve this networking problem.
    Show us the /etc/samba/smb.conf file on the server and one client. Post them inside of a code # block for easy viewing online.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  6. #6
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: Samba and dolphin

    I'm particularly interested also in the smb.conf from the fileserver.
    Also please tell us what is the filesystem on the USB hard drive that's mounted in /home.
    Also please post back here the results of this command issues in a console on the fileserver: ls -l /home
    Also, on the fileserver, please issue this command and post the results back here: sudo pdbedit -L
    And this command on the fileserver too please: cat /etc/fstab | grep home
    Last edited by swerdna; 07-Apr-2013 at 06:20.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  7. #7

    Default Re: Samba and dolphin

    Sorry for the slow response, but work comes first. Thanks for your willingness to dig into my problems. The contents of the requested files are listed below. Any hints on how to add code block into postings?

    From fileserver:

    Code:
    dm1z:/ # more /etc/fstab
    /dev/disk/by-id/ata-TS64GCF400_201203300535-part1 / ext4       acl,user_xattr        1 2
    /dev/disk/by-id/ata-TS64GCF400_201203300535-part2 swap swap      defaults              0 0
    /dev/sdb1 /home                    ext4       defaults              1 1
    proc /proc                     proc       defaults              0 0
    sysfs /sys                      sysfs      noauto                0 0
    debugfs /sys/kernel/debug    debugfs    noauto                0 0
    usbfs /proc/bus/usb          usbfs      noauto                0 0
    devpts /dev/pts                 devpts     mode=0620,gid=5   0 0
    Code:
    dm1z:/home # ls -l
    total 4
    drwxr-xr-x 65 username users 4096 Apr 11 18:04 username
    Code:
    dm1z:/home # pdbedit -L
    username:1000:User Name
    Code:
    dm1z:/ # more /etc/samba/smb.conf
    # smb.conf is the main Samba configuration file. You find a full commented
    # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
    # samba-doc package is installed.
    [global]
        workgroup = TUXBOX
        passdb backend = tdbsam
        printing = cups
        printcap name = cups
        printcap cache time = 750
        cups options = raw
        map to guest = Bad User
        logon path = ""
        logon home = ""
        logon path = \\%L\profiles\.msprofile
        logon home = \\%L\%U\.9xprofile
        logon drive = P:
        usershare allow guests = No
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        domain logons = Yes
        domain master = Yes
        local master = Yes
        os level = 65
        preferred master = No
        security = user
        usershare max shares = 100
        wins support = No
        wins server = 
    [homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes
    [profiles]
        comment = Network Profiles Service
        path = %H
        read only = No
        store dos attributes = Yes
        create mask = 0600
        directory mask = 0700
    [users]
        comment = All users
        path = /home
        read only = No
        inherit acls = Yes
        veto files = /aquota.user/groups/shares/
    [groups]
        comment = All groups
        path = /home/groups
        read only = No
        inherit acls = Yes
    [printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No
    [print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775
    
    [netlogon]
        comment = Network Logon Service
        path = /var/lib/samba/netlogon
        write list = root
    Client side smb.conf:
    Code:
    # smb.conf is the main Samba configuration file. You find a full commented
    # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
    # samba-doc package is installed.
    [global]
        workgroup = WORKGROUP
        passdb backend = tdbsam
        printing = cups
        printcap name = cups
        printcap cache time = 750
        cups options = raw
        map to guest = Bad User
        include = /etc/samba/dhcp.conf
        logon path = \\%L\profiles\.msprofile
        logon home = \\%L\%U\.9xprofile
        logon drive = P:
        usershare allow guests = Yes
    [homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes
    [profiles]
        comment = Network Profiles Service
        path = %H
        read only = No
        store dos attributes = Yes
        create mask = 0600
        directory mask = 0700
    [users]
        comment = All users
        path = /home
        read only = No
        inherit acls = Yes
        veto files = /aquota.user/groups/shares/
    [groups]
        comment = All groups
        path = /home/groups
        read only = No
        inherit acls = Yes
    [printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No
    [print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775
    Last edited by swerdna; 11-Apr-2013 at 17:03. Reason: code box at request of OP

  8. #8
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Samba and dolphin

    Quote Originally Posted by cmrntnnr View Post
    Sorry for the slow response, but work comes first. Thanks for your willingness to dig into my problems. The contents of the requested files are listed below. Any hints on how to add code block into postings?

    From fileserver:

    Code:
    dm1z:/ # more /etc/fstab
    /dev/disk/by-id/ata-TS64GCF400_201203300535-part1 / ext4       acl,user_xattr        1 2
    /dev/disk/by-id/ata-TS64GCF400_201203300535-part2 swap swap      defaults              0 0
    /dev/sdb1 /home                    ext4       defaults              1 1
    proc /proc                     proc       defaults              0 0
    sysfs /sys                      sysfs      noauto                0 0
    debugfs /sys/kernel/debug    debugfs    noauto                0 0
    usbfs /proc/bus/usb          usbfs      noauto                0 0
    devpts /dev/pts                 devpts     mode=0620,gid=5   0 0
    Code:
        
    
    dm1z:/home # ls -l
    total 4
    drwxr-xr-x 65 username users 4096 Apr 11 18:04 username
    Code:
        
    
    dm1z:/home # pdbedit -L
    username:1000:User Name
    Code:
        
    dm1z:/ # more /etc/samba/smb.conf
    # smb.conf is the main Samba configuration file. You find a full commented
    # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
    # samba-doc package is installed.
    [global]
        workgroup = TUXBOX
        passdb backend = tdbsam
        printing = cups
        printcap name = cups
        printcap cache time = 750
        cups options = raw
        map to guest = Bad User
        logon path = ""
        logon home = ""
        logon path = \\%L\profiles\.msprofile
        logon home = \\%L\%U\.9xprofile
        logon drive = P:
        usershare allow guests = No
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        domain logons = Yes
        domain master = Yes
        local master = Yes
        os level = 65
        preferred master = No
        security = user
        usershare max shares = 100
        wins support = No
        wins server = 
    [homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes
    [profiles]
        comment = Network Profiles Service
        path = %H
        read only = No
        store dos attributes = Yes
        create mask = 0600
        directory mask = 0700
    [users]
        comment = All users
        path = /home
        read only = No
        inherit acls = Yes
        veto files = /aquota.user/groups/shares/
    [groups]
        comment = All groups
        path = /home/groups
        read only = No
        inherit acls = Yes
    [printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No
    [print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775
    
    [netlogon]
        comment = Network Logon Service
        path = /var/lib/samba/netlogon
        write list = root
    Client side smb.conf:

    Code:
        
    # smb.conf is the main Samba configuration file. You find a full commented
    # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
    # samba-doc package is installed.
    [global]
        workgroup = WORKGROUP
        passdb backend = tdbsam
        printing = cups
        printcap name = cups
        printcap cache time = 750
        cups options = raw
        map to guest = Bad User
        include = /etc/samba/dhcp.conf
        logon path = \\%L\profiles\.msprofile
        logon home = \\%L\%U\.9xprofile
        logon drive = P:
        usershare allow guests = Yes
    [homes]
        comment = Home Directories
        valid users = %S, %D%w%S
        browseable = No
        read only = No
        inherit acls = Yes
    [profiles]
        comment = Network Profiles Service
        path = %H
        read only = No
        store dos attributes = Yes
        create mask = 0600
        directory mask = 0700
    [users]
        comment = All users
        path = /home
        read only = No
        inherit acls = Yes
        veto files = /aquota.user/groups/shares/
    [groups]
        comment = All groups
        path = /home/groups
        read only = No
        inherit acls = Yes
    [printers]
        comment = All Printers
        path = /var/tmp
        printable = Yes
        create mask = 0600
        browseable = No
    [print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        write list = @ntadmin root
        force group = ntadmin
        create mask = 0664
        directory mask = 0775
    So I do not have time to look at each line, but I see in your server you say Domain Master=Yes. Do you know what that means?

    Code:
        domain logons = Yes
        domain master = Yes
    If you have not really setup a Domain controller, and I have no idea why you would do that at home anyway, that should not be used. Here is my smb.conf file I use on all openSUSE PC's. None are Domain controllers and there is no need to be. Next, the Server Says "workgroup = TUXBOX" while the client says "workgroup = WORKGROUP", which are not the same and would not be used if it were a real Domain. Here is my smb.conf file you could look at for an example.


    Code:
    # smb.conf is the main Samba configuration file. 
    # You find a full commented version at 
    # /usr/share/doc/packages/samba/examples/smb.conf.SUSE 
    # if the samba-doc package is installed.
    # Samba config file created using SWAT 
    # from MY_PC (127.0.0.1)
    # Date: Sun Mar 24 17:31:55 CDT 2013
    
    [global]
      workgroup = WINDOWSNT
    #  netbios name = LinuxMaster
      passdb backend = tdbsam
      name resolve order = bcast host lmhosts wins
      server string = "Master of the Universe"
      printing = cups
      printcap name = cups
      printcap cache time = 750
      cups options = raw
      use client driver = yes
      map to guest = Bad User
      local master = yes
      os level = 33
      usershare allow guests = Yes
      usershare max shares = 100
      usershare owner only = False
      hosts deny = ALL
      hosts allow = 192.168.0.0/255.255.255.0, 127.0.0.1
      max protocol = SMB2
      
    [homes]
      comment = Home Directories
      valid users = %S, %D%w%S
      browseable = No
      read only = No
      inherit acls = Yes
    
    [Software]
      path = /Software
      read only = No
      acl check permissions = No
      inherit acls = Yes
      guest ok = Yes
      profile acls = Yes
    
    [Windows]
      path = /Windows
      read only = No
      acl check permissions = No
      inherit acls = Yes
      guest ok = Yes
      profile acls = Yes
    
    [DataSafe]
      path = /DataSafe
      read only = No
      acl check permissions = No
      inherit acls = Yes
      guest ok = Yes
      profile acls = Yes
    
    [Multimedia]
      path = /Multimedia
      read only = No
      acl check permissions = No
      inherit acls = Yes
      guest ok = Yes
      profile acls = Yes
    My bash script with will create a working smb.conf file and makes it easy to edit to add custom shares. Reconsider reading the entire article cause I don't think you did: S.A.C.T. - Samba Automated Configuration Tool - Version 1.03 - Blogs - openSUSE Forums

    Thank You,

    P.S. Consider breaking up your requested data posts as I did you in your quote post above. Makes it easier to read.
    Last edited by jdmcdaniel3; 11-Apr-2013 at 15:55.
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  9. #9

    Default Re: Samba and dolphin

    Hi jdmcdaniel3,

    I have tried the two things you recommended. The first was to adjust the server-side smb.conf to the settings in your example, comment out the the Domain Master setting, and make corrections to the workgroup setting on the client side to match the server. After restarting the smb and nmb services, the server and client show exactly the same behaviors; mount.cifs works fine and smb:// protocol times out.

    The second thing was to completely start over and configure samba from scratch with your sact tool. The interface and instructions are very nice.  mount.cifs functions normally whether performed on the server or from the client.  smb:// from dolphin is another matter. smb://192.168.1.7/uname timesout when performed from any location.

    It seems like there must be something fairly obvous that I am missing given that mount.cifs functions normally.

    cmrntnnr

  10. #10
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: Samba and dolphin

    Quote Originally Posted by cmrntnnr View Post
    Hi jdmcdaniel3,

    I have tried the two things you recommended. The first was to adjust the server-side smb.conf to the settings in your example, comment out the the Domain Master setting, and make corrections to the workgroup setting on the client side to match the server. After restarting the smb and nmb services, the server and client show exactly the same behaviors; mount.cifs works fine and smb:// protocol times out.

    The second thing was to completely start over and configure samba from scratch with your sact tool. The interface and instructions are very nice.  mount.cifs functions normally whether performed on the server or from the client.  smb:// from dolphin is another matter. smb://192.168.1.7/uname timesout when performed from any location.

    It seems like there must be something fairly obvous that I am missing given that mount.cifs functions normally.

    cmrntnnr
    I just updated SACT yesterday to version 1.06. You can grab the latest version by opening up terminal, copy the string below and past it into your terminal session and press enter:

    Code:
    rm ~/bin/sact ; wget -nc http://paste.opensuse.org/view/download/70701710 -O ~/bin/sact ; chmod +x ~/bin/sact
    The menus have been redone. Select option "6 . Samba Status, Testing and Log File Viewer Menu" and then option "3 . Run testparm on your default /etc/samba/smb.conf file" and lets see what errors might be found in your smb.conf files. Run it on server and client. I also include the ability to look at your smb and nmb log files for any errors that might show up there. For large posts, consider putting them here: SUSE Paste and give us a link there to your text post.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •