ISSUE: Configure Samba (Solve)

Home Forums Operating Systems Linux PeppermintOS ISSUE: Configure Samba (Solve)

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #761
    Voodoo
    Keymaster

    ISSUE: Samba File Transfers are Slow

    Unfortunately, you are usually limited to a single line of transmission which is the cause of the slow transfers with Samba. However, Samba has been updated to use the SMB 3.0 protocol which allows the use of multiple lines of transmissions (aka network cards and cords) to be utilized. Windows 10 has been using the SMB 3.0 protocol for a few years now with Windows 7 still being stuck on SMB 2.0. However, we are mainly talking about the Samba host configuration at this time.

    sudo xed /etc/samba/smb.conf

    `[global]
    	workgroup = VWORLD.US
    	server role = standalone server
    	aio read size = 1
    	aio write size = 1
    	server min protocol = SMB3
    	server max protocol = SMB3
    	client min protocol = SMB3
    	client max protocol = SMB3
    	server multi channel support = yes
    ;	bind interfaces only = yes
    ;	interfaces = lo bond0 192.168.1.99
    	bind interfaces only = yes
    	hosts allow = 192.168.0.0/16
    	hosts deny = 0.0.0.0/0
    ;	log file = /var/log/samba/log.%m
    ;	max log size = 1000
    ;	syslog = 0
    ;	panic action = /usr/share/samba/panic-action %d
    
    # users
        map to guest = bad user
        guest ok = yes
    ;    usershare allow guests = yes
    ;    username map = /etc/samba/smbusers
    ;    security = user
    ;    encrypt passwords = yes
    ;    guest account = nobody
    ;    obey pam restrictions = yes
    ;    unix password sync = yes
    ;    passwd program = /usr/bin/passwd %u
    ;    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    ;    pam password change = yes
    
    [Share]
        comment = This is just a note for the share
        path = /srv/
        force group = group
        force user = username
        writeable = yes
        browseable = yes`
    sudo systemctl stop smbd
    sudo systemctl start smbd

    Save, reboot, and then test it out.

    • This topic was modified 6 months, 2 weeks ago by Voodoo.
    • This topic was modified 3 weeks, 3 days ago by Voodoo.
    • This topic was modified 3 weeks, 3 days ago by Voodoo.
    • This topic was modified 3 weeks, 3 days ago by Voodoo.
    • This topic was modified 3 weeks, 3 days ago by Voodoo.
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar