Avatar of Xetroximyn
Xetroximyn
Flag for United States of America asked on

best simple nfs export and fstab commands for basic sharing?

I want rw mounts and I want username/group matching by name, not gid/uid.  We have a mix of RHEL/CentOS 6/7.  What are the best/simplest options to do this?
File Sharing SoftwareLinux DistributionsLinuxLinux Networking

Avatar of undefined
Last Comment
arnold

8/22/2022 - Mon
arnold

Centralized directory using nis, or LDAP.
When all the systems are part of a single directory, you can centrally manage the gid/UID is what is stored in the file system level
Which is matched to the local passwd file or a directory nis/LDAP


Storing a numeric value requires less space than trying to store a username which can contain various characters, alph, numeric, some symbols......

If using a central directory, make sure to have replicas as well as test transition of a replica to becoming the new master should the current master Fails due to HW issues.

There are write-ups on various setup/disaster situations.
Xetroximyn

ASKER
I toyed around with IPA for a bit, and had problems..... I decided I prefer local users.... simple.... I don't have to worry about any additional server or service to facilitate logins....

Is it possible to have NFS map permissions/ownership by username instead of UID?  

Someone told me nfs4 can, someone else said it can't.

Can anyone clarify this?
ASKER CERTIFIED SOLUTION
arnold

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck