Solved

best simple nfs export and fstab commands for basic sharing?

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

919 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now