Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there is no way to enforcing bsd group semantics on nfs mounts #95

Open
ghost opened this issue Jun 20, 2014 · 0 comments
Open

there is no way to enforcing bsd group semantics on nfs mounts #95

ghost opened this issue Jun 20, 2014 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 20, 2014

Metadata

Description


    I recently migrated from a local copy of /usr/src to one NFS mounted
    off one of my NetApp filers.

    I noticed that new files on the NFS mount are being created with
    my primary group (SYSV behaviour), instead of the group of the
    parent directory (BSD behaviour).

    The workaround is to use what I used on my Solaris clients for
    a long time; set the setgid bit on the parent directory. I don't
    need this anymore on Solaris since I discovered the `grpid' mount
    option which enforces BSD semantics.

    The setgid behaviour wasn't documented anywhere in NetBSD as far
    as I can tell (chmod(1), chmod(2), etc).

    I find it ironic that a SYSV derived system can enforce BSD
    semantics in this situation, but a BSD derived system requires
    a SYSV hack to function correctly. ;-)

    I don't want to setgid all my directories again; setgid on a
    directory has a different lossage mode under Solaris (if the
    umask is set to mask out group execute, new directories will
    be made with g+l (mandatory locking) instead of g+s (setgid),
    as the 2000 bit is inherited by the directory in all situations.
    This is lame, but not our bug :)


How to repeat


    NFS mount a directory off a NetApp fileserver (and maybe others?)
    Create some files. Notice that they have your primary group as
    their group unless the parent directory has the setgid bit set.


Fix


    I suggest that we either:
        * fix our NFS client so that it always has BSD semantics
    or
        * provide a `grpid' mount option for mount_nfs (yuck!)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants