tl;dr: NFS is shit, are there other network file systems besides CIFS/samba?
OK guys, I'm finally done with NFS and seriously looking for an alternative.
After being frustrated with full system freezes on machines with active NFS mounts and imperfect network connections (read: WiFi), I tried migrating a desktop+laptop system to a docking-station laptop-only one today. As NFS (in contrast to CIFS) is incapable of moving to different network interfaces without remounting, it seems impossible to seamlessly switch from a slow wifi connection so fast ethernet when docking in. WTF? It's 2017!
The shares are organized in a single subtree (→ one NFS mountpoint), permissions are inferred from filesystem/user permissions on all clients. Users don't have root on their machines, so this is fine security wise. However, it seems impossible to move this setup to CIFS, as the mounting user will determine the permissions for the full subtree on a client.
Are there any recommendations for modern NFS alternatives that support uid-based authentification and are somewhat useable on a laptop?
Gabriel Jenkins
>as the mounting user will determine the permissions for the full subtree on a client When you know nothing about security.
Jose Rogers
>When you know nothing about security.
Please elaborate. Afaik it is not possible to have a single CIFS-mountpoint on a client machine which multiple users are accessing using their own credentials. I would be most interested in a link proofing this statement wrong (and thereby solving my problem).
Jonathan Wilson
SFTP
Ryan Rogers
sshfs
Ethan Davis
permissions are preserved unless you're overriding them with mount options
use a user space client if your file manager has it, the performance will be ass but it won't lock up
James Powell
>SFTP >sshfs
Both use static tcp connections. OP will have the same problems as with NFS.
I think there's no solution, Linux sucks ass on desktop machines.
Cooper Price
>permissions are preserved unless you're overriding them with mount options
This will however only work for read access, as the samba server won't even know what user is doing stuff on the client,
Samuel Allen
>use a user space client if your file manager has it, the performance will be ass but it won't lock up
Performance is an issue, as all stations are merely diskless. All user data lives in the network.
Hudson Murphy
>Performance is an issue then don't use wifi, problem solved
Alexander Stewart
>don't use wifi
People working on laptops have to use Wifi, espacially in conference rooms/during presentations etc.
Landon Garcia
this is obviously a neet on mom's wifi thread
Dominic Perez
>diskless
This is specifically where NFS excels. What's your problem with it besides ignorance/incompetence?
Sebastian Turner
>ll system freezes on machines with active NFS mounts and imperfect network connections
>DIDN'T READ THE MANUAL NEARLY 2018
NFS soft mount. But in this case NFS isn't the correct tool as it's designed specifically for a semi-permanent connection. SSHFS is the best go fuck yourself stupid.
Parker Taylor
sshfs has ass performance and umounts itself when the underlying ssh connection drops even with all the timeout and reconnect options, ssh is just inherently shit at roaming
Liam Allen
Tell me how you switch network interfaces (different IPs) for a NFS share without remounting.
Austin Phillips
iSCSI
Thomas Rodriguez
I think it is you who is shit. Read the fucking manual.
Ian Richardson
How's he not right? Tho my knowledge, ssh depends on a single, stable tcp connection.
Nathaniel Gomez
That is NOT the scenario to use diskless. Use AFS.
Jayden Reed
Stupid cunt detected.
Lincoln Russell
not an argument, neet
Kevin Diaz
To share a same disk across multiple clients?
Jayden Lewis
Let me address the main issue here >diskless systems >over wifi
Landon Bailey
I was imprecise, desktop systems are diskless (and connected over ethernet). Laptops do have a small SSD for the OS and persisting user-selected data that has to be available offline.
Juan Price
IPFS?
Ian Powell
AFS was specifically designed for this usage. NFS was not.
Nolan Flores
systemd-automount networkmanager dispatch will fix your problems.
Jayden Collins
How does AFS deal with connections of the the same client using different IPs? (technically)
Well, it will require closing all open files, which is not ideal.
Hudson Perry
Just configure your NFS v4 properly, it shouldn't be tied to specific interfaces. Or maybe auto remount.
David Foster
Why don't you READ THE FUCKING MANUAL.
Evan Johnson
nigger way is tweak your sysctl not to hang for 5 minutes and write an ifupdown or dispatcher.d script to detect the interface going down and lazy umount/mount it again
there does also exist a kernel patch to lower the hardcoded timeout in the garbage that is cifs