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
drwxrwx---     jbrown   dev       patches
drwxrws---     ssmith    prod     real_work


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

drwxrwx---   jbrown  nobody   document_files

when it should be:
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 04: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

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

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 04:48 PM.. Reason: Please use code tags
# 6  
Old 03-02-2015
Ok, the inodes are identical.
Then you have different GID-group mapping.
ls -lin

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

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

Do you have nscd running?
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 10:03 AM
Permissions for NFS share Rossdba UNIX for Dummies Questions & Answers 0 08-27-2014 06:58 PM
NFS share mastansaheb Red Hat 1 04-10-2013 03:28 AM
Solaris 10 NFS Share Issue fallersaur Solaris 6 01-25-2013 03:42 PM
How to Map AD groups to Samba share? sunnysthakur Red Hat 3 01-16-2013 08:17 AM
CIFS share re-export NFS prossits Red Hat 1 06-06-2012 02:12 PM
Ldom Vdisk on NFS Share fugitive Solaris 1 09-06-2011 02:33 AM
du and df do not match on NFS share masterpengu UNIX for Advanced & Expert Users 3 05-09-2011 06:01 PM
NFS Share Setup On AIX a_sim AIX 1 03-17-2011 05:23 AM
NFS- share drive question sam101 Solaris 3 01-24-2011 11:41 PM
NFs share AIX 6.1 and 5.3 - bug ? - unclefab AIX 1 06-07-2010 11:55 AM
Problem Mounting NFS share fcron IP Networking 2 03-20-2010 04:59 PM
Secondary groups not working with NFS (+LDAP) velmont Linux 0 08-06-2009 11:04 AM
NFS share error rcmrulzz Red Hat 2 05-14-2008 08:05 AM
NFS share options psimoes79 Solaris 6 10-01-2007 02:27 PM