NFS share and groups


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 03-02-2015
NFS share and groups

I am having an issue with getting the proper group settings on NFS-shared directories.
NFS server, NFServe, nfs-shares hundreds of project directories...running Solaris 10 latest patches/updates.
SAS server, SAServe, statistical analysis server running on RedHat 7 with latest kernel/patches/etc.

NFServe uses ancient Sun Directory Server for LDAP.
SAServe uses Active Directory on win2008r2. UIDs and GIDs set up matching on LDAP/Unix/AD (so if you are group ibex GID 5005 on LDAP, you are group 5005 on AD).

NFServe also nfs-shares project directories to an old SAS server also running Solaris 10 and all groups are correct.

On SAServe, all but six of the nfs-shared directories show the proper groups. However, on six of them, the group is nobody.

Does anyone have any suggestions where to look? I can't find the problem, and I can't find anything that makes these groups/directories unique.
# 3  
Old 03-02-2015
If I do an ls -l listing of the nfs-shared directories on the sas server they should show owner:group something like this
Code:
drwxrwx---     jbrown   dev       patches
drwxrws---     ssmith    prod     real_work

etc.

However, on six of several hundred directories (which have the correct group), it shows:

Code:
drwxrwx---   jbrown  nobody   document_files

when it should be:
Code:
drwxrwx---    jbrown  hrdept   document_files

So the problem is that the document_files directory, which should be jbrown:hrdept (and that's the way it is on the nfsserver) is showing up as jbrown:nobody and the only one who can access it is jbrown.

When I google this, I find instances where ALL directories are set to the group nobody, but I can't find anyone else who has just a couple set to nobody and all the others set properly.

Last edited by Scott; 03-02-2015 at 05:47 PM.. Reason: Please use code tags
# 4  
Old 03-02-2015
Go to each the directories and run df .
It gives you the export path on the NFS server.
A quick comparison is done with the inode number: ls -lid .
If they *are* identical then there is a problem with different GID-group mapping.
# 5  
Old 03-02-2015
I'm not sure that is clear, but

sasserver:
Code:
[root@srv-sas-01 acrn]# ls -lid .
7 drwxrwx--x 51 jsmith nobody 66 Oct 24 07:24 .

nfsserver:
Code:
root@fs  # ls -lid .
7 drwxrwx--x  51 jsmith prod     66 Oct 24 07:24 .

The share point is the top level, /projects and all of the directories fall beneath that.

Last edited by Scott; 03-02-2015 at 05:48 PM.. Reason: Please use code tags
# 6  
Old 03-02-2015
Ok, the inodes are identical.
Then you have different GID-group mapping.
Code:
ls -lin

shows UID GID. On each system map to group names with
Code:
getent group <GID>

On the system that is wrong,
how is group defined in nsswitch.conf?
Code:
grep group: /etc/nsswitch.conf

Do you have nscd running?
Code:
pgrep nscd && grep group /etc/nscd.conf

# 7  
Old 03-02-2015
I may be running afoul of the fact that unix can have the same name for a user and a group whereas that is not permitted in Active Directory. But that doesn't explain all of the cases.

Related to the nsswitch.conf question, obviously, on the nfsserver groups is files ldap and on the RH7 machine it's files sss.

Neither system runs nscd (solaris or rh). I inherited the S10 system, so I don't know why it was set up that way. I believe there are some reported issues running NSCD in conjunction with AD on RH, but I'd have to go back and re-research that.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Mount NFS Share On NFS Client via bash script. Brian.t Shell Programming and Scripting 4 03-13-2016 11:03 AM
Permissions for NFS share Rossdba UNIX for Dummies Questions & Answers 0 08-27-2014 07:58 PM
NFS share mastansaheb Red Hat 1 04-10-2013 04:28 AM
Solaris 10 NFS Share Issue fallersaur Solaris 6 01-25-2013 04:42 PM
How to Map AD groups to Samba share? sunnysthakur Red Hat 3 01-16-2013 09:17 AM
CIFS share re-export NFS prossits Red Hat 1 06-06-2012 03:12 PM
Ldom Vdisk on NFS Share fugitive Solaris 1 09-06-2011 03:33 AM
du and df do not match on NFS share masterpengu UNIX for Advanced & Expert Users 3 05-09-2011 07:01 PM
NFS Share Setup On AIX a_sim AIX 1 03-17-2011 06:23 AM
NFS- share drive question sam101 Solaris 3 01-25-2011 12:41 AM
NFs share AIX 6.1 and 5.3 - bug ? - unclefab AIX 1 06-07-2010 12:55 PM
Problem Mounting NFS share fcron IP Networking 2 03-20-2010 05:59 PM
Secondary groups not working with NFS (+LDAP) velmont Linux 0 08-06-2009 12:04 PM
NFS share error rcmrulzz Red Hat 2 05-14-2008 09:05 AM
NFS share options psimoes79 Solaris 6 10-01-2007 03:27 PM