Slow Samba connection

I’ve installed Ubuntu 19.04 on my laptop alongside Windows 10.

I’m happy using Ubuntu and would like to leave Windows behind, but the only thing that is keeping it on my system is that I can transfer files about 5x quicker using Windows!?

I upload video files from my phone to my laptop and then transfer them via Samba (on Wi-Fi) to a Raspberry Pi3B running Libreelec.

When I use Windows my upload speed is around 10Mb/sec Using Ubuntu it’s only around 2Mb/sec

What am I doing wrong? I’m assuming it’s a setting somewhere.

Any help would be really appreciated. Many thanks in advance.

configuring samba environment on ubuntu 18.04

Good afternoon everybody here,

i just prepared a server for my home network, to be used as a backup server. Installed sw include: ubuntu 18.04, ubuntu desktop, samba service, webmin.

My home network doesn’t have domains, ldap or other NT security infrastructures. Only my personal machines usually connect. I can use a fully open network setting for running my backups, but i’d like more to close the backup environment under user and password, for security purpose.

I configured smb.conf to share a backup folder on windows 7 by now (in few days with windows 10 too).

I created proper unix users and then converted them to a samba user.

I setted the permissions of my shared folder, subfolders and files at 1774 (read write execute for users and groups, read only for others).

I am experimenting 2 disturbing problems:

1) after bootstrapping the ubuntu machine, by double clicking my backups folder i get an error. Only a fully open test folder can be seen. I can see and work on the shared directory from the windows machine only after logging on the ubuntu machine and navigating to the shared folder by the ubuntu file system application (none other operation is required, to make the folder accessible…)

2) i am trying different configurations of my shared folder in smb.conf. But the result is always the same: my windows client never asks me for user/password, it always allows me full read/write access without entering my credentials.

Hereafter my settings in smb.conf:


   workgroup = MYWORKGROUP *(as defined on windows)*     dns proxy = no      netbios name = MYSERVERNAME     server string = Samba Server     log file = /var/log/samba/log.%m     admin users = root, myuser1, myuser2     security = USER       valid users = myuser1, myuser2 


[BCKP-SERVER] (this folder has problem 1 and 2)

comment = BACKUP SERVER  path = /media/myname/2TB-01/BACKUPS  browseable = yes  valid users = myuser1, myuser2  directory mode = 774  create mode = 774  revalidate = yes  writable = yes 

[tmp] (this is always visible and writable)

comment = Temporary file space

path = /tmp

read only = no

public = yes

btw, i find many sample smb.conf files searching by google, but i wasn’t able safe working samples for my requirements. That is strange, since i believe my requirements are very common ones…

Where am i wrong? Does the problem maybe depend on settings not included in the smb.conf file? (e.g. the permissions of files and directories) Could anyone post here a secure working sample?

In case i omitted information necessary to debug the problem please ask.

Thanks for your help Regards

Unable to built samba 4.10.6 from source

I have Ubuntu 18.04.2 LTS installed at my home desktop.

I want to be able to backup my Mac laptop using time machine in Ubuntu hard drives. For this purpose, I need samba 4.8.0 or later, which I have to install from source.

I followed this link for installing the latest samba-4.10.6.

I’ve created an environment with Python 3.4. It configured without problems, however, on make step there is an error:

 /home/misha/anaconda3/envs/myenv/lib/ undefined  reference to `tgetstr'  /home/misha/anaconda3/envs/myenv/lib/ undefined  reference to `tputs'  /home/misha/anaconda3/envs/myenv/lib/ undefined  reference to `BC'  /home/misha/anaconda3/envs/myenv/lib/ undefined  reference to `tgetent'  /home/misha/anaconda3/envs/myenv/lib/ undefined  reference to `tgetflag'  /home/misha/anaconda3/envs/myenv/lib/ undefined  reference to `tgoto'  /home/misha/anaconda3/envs/myenv/lib/ undefined  reference to `UP'  /home/misha/anaconda3/envs/myenv/lib/ undefined  reference to `tgetnum'  /home/misha/anaconda3/envs/myenv/lib/ undefined  reference to `PC'  collect2: error: ld returned 1 exit status   Waf: Leaving directory `/home/misha/Downloads/samba-4.10.6/bin/default'  Build failed   -> task in 'smbtorture' failed with exit status 1 (run with -v to  display more information)  Makefile:7: recipe for target 'all' failed  make: *** [all] Error 1 

Did anyone had a problem with this? I was not able to solve it.

Thanks, Misha

Samba hide disallowed files

I am using Ubuntu 18.04.2 and samba 4.7.6

i have the following directories:

sambashare/ ├── dir1 ├── dir2 ├── dir3 └── dir4 

and 2 users: user1 and user2

i want to give permission to user1 to all folders and user2 only to dir3 and dir4, is there any option to hide dir1 and dir2 directories from user2?

Help with Kubuntu / Dolphin samba browsing network, windows and other ubuntu machines

First thank you for taking the time to read this and trying to help me. my main language is not english, i hope you guys can understand me.

I have an small network, 4 windows computers and 4 linux/ubuntu computers, and when i do repairs i join the client’s computers to the network to do backups of install software.

in the computers using ubuntu 18.04, i just install ubuntu, then install samba, add the user smbpasswd -a xxx and voila! in nautilus i can brose the whole network, my other ubuntu computers and windows computers show up, i can just doble clic and proceed to their shared folders. Sometimes i get an errro when double clic to enter the other computer and either i wait a few minutes OR i type smb://computername/folder and i am inside. but at least because al already am selecting the computer i know the name of the computer i am trying to get in.

In kubuntu 18.04 i can NEVER see the network, nothings appears on the dolphin browser, sometimes the other ubuntu computers show up… but the windows ones never!.

In Xubuntu 18.04 they DO show up, but everytime i clic on them to log in their shared folders i always get an error – unable to mount –

i’ve tried the nt=1 thing, but i have no clue why only in ubuntu and in ubuntu mate i can browse the network perfectly and not in kubuntu or in xubuntu.

any idea guys? i am forced to always use ubuntu or ubuntu mate but never kubuntu or xubuntu because this is a deal breaker for me.

thank you again.

Cannot add new files to mounted Samba NAS

I tryed to mount my nas automatically in fstab like this:

// /mnt/Musik cifs username=sandro,password=mypassword, iocharset=utf8, uid=1000, gid=1000, file_mode=0777,dir_mode=0777  0  0 

However i still don’t get the rights to add remove new files. I thought adding uid gid solved it because it mounts the drive like its your own. I got the uid/ gid from id:

uid=1000(sandro) gid=1000(sandro) groups=1000(sandro),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),116(lpadmin),125(sambashare)