Sharing files locally via LAN -is- the monster beneath the bed !!

Discussion in 'Linux' started by smallhagrid, Oct 26, 2020.

  1. smallhagrid

    smallhagrid MDL Addicted

    Sep 14, 2013
    608
    445
    30
    Quick disclaimer so as to (hopefully) avoid miscomprehensions here:
    I truly enjoy being a full-time Linux user & have zero desire to go back to using or supporting that 'other OS'.

    So...after many months and much wrangling with the tangles trying to attain simple shared file usage...
    The LAN mentioned herein has only 2 users & a 3rd PC as a sort of 'server' with thousands of files & directories some of which dating back ~20 years.

    The main problem in this has been file permissions, which (IMO) help EXACTLY nothing in using local-only file shares for documents.

    Until today Samba was in use and it can be stated as factual (IMO) that Libreoffice cannot correctly handle files shared via Samba.

    Collabora Office is better by a goodly margin, but still trips over the strange permission problems - though it does so less than its ancestor, L.O.

    NFS was suggested to me for this but never seriously attempted after the hour or 2 that I wasted in trying to test it out which brought me zero good results - all I got out of that attempt was a headache.

    BUT:
    I since got a suggestion to use SSHFS for file sharing over the LAN and then I did my usual sorts of widespread checking into it so as to compile the most consistent & pertinent info I could find before trying to impliment it.

    So now I am here after spending almost my entire weekend doing computer fix-it stuff...including the part of that time used in setting up SSHFS as suggested.

    It -IS- way better than Samba - but can also be much worse & I'll try to 'splain that a little.

    Getting it up & ready on the tiny LAN's 'server' was indeed quite trivial.

    Getting connected to it manually & testing it for ease of use at the 2 'client' ends also went very smoothly & was quite impressive, BUT:

    There is the same lack of succinct & complete info (as Samba...) when it comes to automating it to reconnect at boot time, and I learned the hard way that this can result in the dreaded & inescapable emergency mode.

    So - how did I get so lost after all that ??

    Out of the ~2 dozen sites I compiled connection info from - not even ONE mentioned that to add the mount points into fstab - you must FIRST have set up the proper key pairs so that it can authenticate - OR ELSE !!!!

    Thank goodness for the Ventoy made USB tools stick that I have with Parted Magic which allowed me to comment out the offending lines & remove the dirty bit markings & then to have GParted make sure the partitions were indeed error free.

    Then silly old me tried making a bash script to do the mounting...nope, that didn't work either, but at least it also didn't harm anything.

    So - for the moment the needed connections are right, tight & do indeed function just like local file sharing & will only require manual reconnections after each reboot.

    In the meantime I will try to work out the EXACT & needed details for correctly installing the key pairs - whilst I still really wish there was some other even simpler way to make it work...
    Like maybe just from a single script with desktop icon to make it remount after a restart.

    If anyone here is really knowledgable about SSHFS and its needs, please educate me some more ??

    Thanks in advance for any Helpful replies !!