I use Lubuntu 18.04 and have problems with my samba shares. The problems occur when using PCmanFM, a GUI tool, but also when copying data via terminal.
I can copy some files but then sometimes the connection breaks. It happens mostly when I use mp3fs. This is a file system that converts from flac (and others) to mp3 on the fly, e.g. while accessing. It works by mounting a directory in fstab with mp3fs and which has another directory with the original files as its parent. So when I access the mounted directory it shows the content of the original directory, but just in mp3 instead of flac. This normally works like a charm. I tested it by copying the whole directory on the system itself.
But when I try to copy stuff from the mp3fs directory over samba it fails constantly - often at the same set of files/folders.
I added the version 1 in fstab and the NT1 in the samba configuration after the error occured but it did not help. Any suggestions?
This is my clients fstab:
/192.168.100.102/RAID6 /home/ben/Benshare/OMV vers=1.0,cifs noauto,users,username=USERNAME,password=PASSWORD,user=USERNAME
This is my /etc/samba/smb.conf:
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = %h server
dns proxy = no
log level = 0
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
syslog only = yes
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = no
unix password sync = no
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
socket options = TCP_NODELAY IPTOS_LOWDELAY
guest account = nobody
load printers = no
disable spoolss = yes
printing = bsd
printcap name = /dev/null
unix extensions = yes
wide links = no
create mask = 0777
directory mask = 0777
use sendfile = yes
aio read size = 16384
aio write size = 16384
local master = yes
time server = no
wins support = no
#======================= Share Definitions =======================
[RIKE]
path = /srv/dev-disk-by-label-BenRAID6/RIKE
guest ok = no
read only = no
browseable = yes
inherit acls = yes
inherit permissions = no
ea support = no
store dos attributes = no
vfs objects = recycle
recycle:repository = .recycle/%U
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:directory_mode = 0777
recycle:subdir_mode = 0700
recycle:exclude =
recycle:exclude_dir =
recycle:maxsize = 0
printable = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
hide special files = yes
follow symlinks = yes
hide dot files = yes
valid users =
invalid users =
read list =
write list =
[RAID6]
path = /srv/dev-disk-by-label-BenRAID6/RAID6
guest ok = no
read only = no
browseable = yes
inherit acls = yes
inherit permissions = no
ea support = no
store dos attributes = no
vfs objects = recycle
recycle:repository = .recycle/%U
recycle:keeptree = yes
recycle:versions = yes
recycle:touch = yes
recycle:directory_mode = 0777
recycle:subdir_mode = 0700
recycle:exclude =
recycle:exclude_dir =
recycle:maxsize = 0
printable = no
create mask = 0664
force create mode = 0664
directory mask = 0775
force directory mode = 0775
hide special files = yes
follow symlinks = yes
hide dot files = yes
valid users = "ben","benraid","rike"
invalid users =
read list =
write list = "ben","benraid","rike"
#Am16.10.hinzugefügt
client max protocol = NT1