Excuse my ignorance in NFS please: I usually can get it to do what I want but not this time. Advice on getting it to work and best practice sought.
Scenario:
SME Machine 1, 3 TiB very full with some large 100GiB+ directories in only occasional use. All users use this and have user accounts. User access via Samba.
SME Machine 2, 2 TiB only 500GiB in use, only graphics creators using this (subset of all, only these users have user accounts). User access via Samba.
Both machines running SME 8, Machines will be replaced early next year. But space issues to get us to next year.
Plan: move 500GiB of assorted directories from Machine 1 to Machine 2, export them via NFS, symlink them back to the same locations in filesystem on Machine 1. NFS installed, export created, temp mount made, data rsync'ed over all OK, symlinked OK.
That all works fine for me looking from the console as root, but does not work well for users accessing via Samba where access is denied.
After reading around I suppose the issues are UID/GID related but I am ignorant in this area.
Machine 2 export:
/home/e-smith/files 172.17.60.10/31(rw,sync,no_wdelay,nohide,no_root_squash)
Machine 1 test mount:
mount -t nfs 172.17.60.18:/home/e-smith/files /mnt/nfs
I then symlinked from the target directory under /mnt/files to the original location, but as I say, only root had full access.
There are no internal security requirements for these files, they are required for access by everyone as archived product files for retired products.
I have played with all_squash and that did not seem to do anything.
I have considered creating an nfsuser on both machines and giving this the same UID and GID on both, but I'm not clear on how to do that and make it work with canonical e-smith config files and samba.
Can anyone offer any suggestions please?
TIA!
MeJ