Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

best simple nfs export and fstab commands for basic sharing?

Posted on 2016-07-25
3
79 Views
Last Modified: 2016-09-13
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?
0
Comment
Question by:Xetroximyn
  • 2
3 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 41728760
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.
0
 

Author Comment

by:Xetroximyn
ID: 41733778
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?
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 41734039
The map in /etc/exports is by username, but would require that your users/uids are synchronized among the various systems NFS server and the client systems.


You could script tge user creation making sure .. Username/group and their corresponding uid/gid are identical.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question