• Uncategorized

About linux : Auding-branch-of-NFS-to-find-unique-groups

Question Detail

Is there a way to audit all the different groups used in a directory tree on my NFS system? I want to see all the different groups that are used in hopes of condensing the total amount of groups on my system.

Currently Ive been running into permissions issues for users related to NFS 16 group limit, where creation of a new group to deal with a specific permissions case causes users elsewhere to loose permission because they are in more than 16 groups.


Question Answer

There is nothing on NFS side to do that but you can script it using stat command.

Inside your NFS folder you can just execute this:

$ find . -exec stat -c "User:%U Group:%G" {} \; | uniq

I’m still wondering why this limitation is not fix in NFS client (from the kernel) or at least being able to set the groups to be sent to the server

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.