Results 1 to 6 of 6

Thread: Samba help urgently needed

  1. #1

    Default Samba help urgently needed

    I have an openSuse 42.1 server having 4.7.0-1-default kernel. Two machines are connected to the server, the first one being openSuse 42.2 having 4.4.104-18.44-default kernel, and the second one being openSuse Leap 15.0 having 4.12.14-lp150.12.48-default kernel.
    Yesterday, I upgraded the second machine (Leap 15.0) with the above mentioned (new) kernel, and file sharing via samba does not work any more between the server and the Leap 15.0. The latter is allowed to open files in read-only mode. Also no copy/paste is allowed. On the other hand, the file sharing between the server and said first machine (openSuse 42.2) works fine; well no upgrades have been done.
    Help to resolve the matter is urgently needed, since my work is on hold for two days.
    Thanks all of you for helpful tips and hints.

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,712
    Blog Entries
    1

    Default Re: Samba help urgently needed

    Share the smb.conf for the affected machines. That might help others to advise further.
    openSUSE Leap 15.1; KDE Plasma 5

  3. #3

    Default Re: Samba help urgently needed

    Quote Originally Posted by deano_ferrari View Post
    Share the smb.conf for the affected machines. That might help others to advise further.
    smb.conf of the server:

    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.
    # Date: 2012-05-02
    [global]
        workgroup = INVENTIO
        netbios name = INVENTIO_SRV
        passdb backend = smbpasswd
        encrypt passwords = yes
        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:
        guest ok = No
        usershare allow guests = No
    
    # Added by JK, 2012-09-02
    # dostop do mreznih imenikov in varnostnih kopij
    [dokumenti]
        comment = Dokumenti
        inherit acls = Yes
        path = /home/mreza/dokumenti
        read only = No
        create mask = 0664
        force create mode = 0664
        directory mask = 0775
        force directory mode = 0775
        force user = mreza
        valid users = @users
        writable = Yes
    
    [shramba]
        comment = Shramba
        inherit acls = Yes
        path = /home/mreza/shramba
        read only = No
        create mask = 0664
        force create mode = 0664
        directory mask = 0775
        force directory mode = 0775
        force user = mreza
        valid users = @users
        writable = Yes
    
    [tmp]
        comment = Zacasni imenik na strezniku
        inherit acls = Yes
        path = /home/mreza/tmp
        read only = No
        force user = mreza
        valid users = @users
        writable = Yes
    
    [backup]
        comment = Varnostne kopije dokumentov in shrambe
        inherit acls = Yes
        path = /local/backup
        read only = Yes
        guest ok = No
        force user = mreza
        valid users = @users
        writable = No
    
    # [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
    and smb.conf of the client:

    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 = INVENTIO
        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 = No
        security = domain
    [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

  4. #4
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,067

    Default AW: Samba help urgently needed

    There was an update in the kernel that only version 3 of samba is supported by default, or you have to enable explizit in your fstab by adding vers=1.0 to your mount line....
    https://linuxsecurity.com/advisories...e-linux-kernel
    - smb3: Improve security, move default dialect to SMB3 from old CIFS
    (bsc#1051510).
    https://git.kernel.org/pub/scm/linux...a491cd1edc13a1

  5. #5

    Default Re: AW: Samba help urgently needed

    Quote Originally Posted by Sauerland View Post
    There was an update in the kernel that only version 3 of samba is supported by default, or you have to enable explizit in your fstab by adding vers=1.0 to your mount line....
    https://linuxsecurity.com/advisories...e-linux-kernel


    https://git.kernel.org/pub/scm/linux...a491cd1edc13a1
    Many thanks. It works now.

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,712
    Blog Entries
    1

    Default Re: AW: Samba help urgently needed

    Quote Originally Posted by krpan View Post
    Many thanks. It works now.
    Good to know.

    For others who are interested...
    https://lists.opensuse.org/opensuse-.../msg00094.html
    openSUSE Leap 15.1; KDE Plasma 5

Posting Permissions

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