Solved

best simple nfs export and fstab commands for basic sharing?

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

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 76

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
As a financial services provider, your business is impacted by two of the strictest federal regulations on record: the Sarbanes-Oxley Act and the Gramm-Leach-Bliley Act. Correctly implementing faxing into your organization to provide secure, real-ti…
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…
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…

708 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

11 Experts available now in Live!

Get 1:1 Help Now