Solved

best simple nfs export and fstab commands for basic sharing?

Posted on 2016-07-25
3
74 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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

776 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