the best about samba:
thanks for samba, it provides users with a fast (of course depends also on harddisk speed) rock-solid no-limit-to-maximum-users file-server for maximum file-transfer-and-sharing-and-storage productivity (and they will USE that T: temp drive for EVERYTHING! prepare for TERRABYTES OF DATA!)
best hint ever: if there is an errors while smb mounting!
like “Mounting cifs drive gives: mount error(22): Invalid argument”
what speeds to expect:
mounting samba-over-ssh-over-tcpip-over-internet is (of course) sloooow(er), because all that data goes through an encrypted channel plus slow-internet connection.
but it works! 🙂
if /mnt/cifs/here is owned by non-root user, also non-root users are allowed to mount.
(which is rather tricky with mount cifs)
- have OpenSSH installed
- allow root login
- have sshfs installed
# it should be possible to give non-root access to the sshfs mounted folder # make sure the user has the same USERID:GROUPID on client and server hostnamectl; # system tested with client and server Operating System: Debian GNU/Linux 10 (buster) Kernel: Linux 4.19.0-14-amd64 Architecture: x86-64 sshfs --version SSHFS version 2.10.0 FUSE library version: 2.9.9 fusermount version: 2.9.9 using FUSE kernel interface version 7.19 # what userid has the non-root user? id -u 1000 # become root su - root; # setup software apt install sshfs # for CentOS8 checkout this guide # how to enable power tools repo yum install fuse-sshfs.x86_64 # as root create mount point # this is perfect for GNU Linux (Debian) desktop gui users mkdir -p /media/user/sshfs # this is perfect for GNU Linux (rpm/Fedora/CentOS/Redhat) desktop gui users mkdir -p /run/media/user/sshfs # hand over ownership of mount point to default-non-root user chown -R user:user /media/user/sshfs # try to mount sshfs -o allow_other,default_permissions email@example.com:/mount/this/folder /media/user/sshfs # alternatively sshfs firstname.lastname@example.org:/mount/this/folder/ /media/user/sshfs/ -o allow_other -o idmap=user -o uid=1000 -o gid=1000 # if it complains fuse: unknown option `idmap=user' # just leave out -o idmap=user