New files and folders on a Linux client mounting a Windows 2012 Server for NFS share do not inherit Owner and Group when SetGID bit set

Problem statement
When I mount a Windows NFS service file share using UUUA and set the Owner and Group, and set the SetGID bit on the parent folder in a hierarchy. New Files and folders inside and underneath the parent folder do not inherit the Owner and Group permissions
of the parent.
I am given to understand from this Microsoft KnowledgeBase article (http://support.microsoft.com/kb/951716/en-gb) the problem is due to the Windows implmentation of NFS Services not supporting the Solaris SystemV or BSD grpid "Semantics"
However the article says the same functionality can acheived by using ACE Inheritance in conjunction with changing the Registry setting for "KeepInheritance" to enable Inheritance propagation of the Permissions by the Windows NFS Services.
1. The Precise location of the "KeepInheritance" DWORD key appears to have "moved" in  Windows Server 2012 from a Services path to a Software path, is this documented somewhere? And after enabling it, (or creating it in the previous
location) the feature seems non-functional. Is there a method to file a Bug with Microsoft for this Feature?
2. All of the references on demonstrating how to set an ACE to achieve the same result "currently" either lead to broken links on Microsoft technical websites, or are not explicit they are vague or circumreferential. There are no plain Examples.
Can an Example be provided?
3. Is UUUA compatible with the method of setting ACE to acheive this result, or must the Linux client mount be "Mapped" using an Authentication source. And could that be with the new Flat File passwd and group files in c:\windows\system32\drivers\etc
and is there an Example available.
Scenario:
Windows Server 2012 Standard
File Server (Role)
+- Server for NFS (Role) << -- installed
General --
Folder path: F:\Shares\raid-6-array
Remote path: fs4:/raid-6-array
Protocol: NFS
Authentication --
No server authentication
+- No server authentication (AUTH_SYS)
++- Enable unmapped user access
+++- Allow unmapped user access by UID/GID
Share Permissions --
Name: linux_nfs_client.host.edu
Permissions: Read/Write
Root Access: Allowed
Encoding: ANSI
NTFS Permissions --
Type: Allow
Principal: BUILTIN\Administrators
Access: Full Control
Applies to: This folder only
Type: Allow
Principal: NT AUTHORITY\SYSTEM
Access: Full Control
Applies to: This folder only
-- John Willis, Facebook: John-Willis, Skype: john.willis7416

I'm making some "major" progress on this problem.
1. Apparently the "semantics" issue to honor SGID or grpid in NFS on the server side or the client side has been debated for some time. It also existed as of 2009 between Solaris nfs server and Linux nfs clients. The Linux community defaulted to declaring
it a "Server" side issue to avoid "Race" conditions between simultaneous access users and the local file system daemons. The client would have to "check" for the SGID and reformulate its CREATE request to specify the Secondary group it would have to "notice"
by which time it could have changed on the server. SUN declined to fix it.. even though there were reports it did not behave the same between nfs3 vs nfs4 daemons.. which might be because nfs4 servers have local ACL or ACE entries to process.. and a new local/nfs
"inheritance" scheme to worry about honoring.. that could place it in conflict with remote access.. and push the responsibility "outwards" to the nfs client.. introducing a race condition, necessitating "locking" semantics.
This article covers that discovery and no resolution - http://thr3ads.net/zfs-discuss/2009/10/569334-CR6894234-improved-sgid-directory-compatibility-with-non-Solaris-NFS-clients
2. A much Older Microsoft Knowledge Based article had explicit examples of using Windows ACEs and Inheritance to "mitigate" the issue.. basically the nfs client "cannot" update an ACE to make it "Inheritable" [-but-] a Windows side Admin or Windows User
[-can-] update or promote an existing ACE to "Inheritable"
Here are the pertinent statements -
"In Windows Services for UNIX 2.3, you can use the KeepInheritance registry value to set inheritable ACEs and to make sure that these ACEs apply to newly created files and folders on NFS shares."
"Note About the Permissions That Are Set by NFS Clients
The KeepInheritance option only applies ACEs that have inheritance enabled. Any permissions that are set by an NFS client will
only apply to that file or folder, so the resulting ACEs created by an NFS client will
not have inheritance set."
"So
If you want a folder's permissions to be inherited to new subfolders and files, you must set its permissions from the Windows NFS server because the permissions that are set by NFS clients only apply to the folder itself."
http://support.microsoft.com/default.aspx?scid=kb;en-us;321049
3. I have set up a Windows 2008r2 NFS server and mounted it with a Redhat Enteprise Linux 5 release 10 x86_64 server [Oct 31, 2013] and so far this does appear to be the case.
4. In order to mount and then switch user to a non-root user to create subdirectories and files, I had to mount the NFS share (after enabling Anonymous AUTH_SYS mapping) this is not a good thing, but it was because I have been using UUUA - Unmapped Unix
User Access Mapping, which makes no attempt to "map" a Unix UID/GID set by the NFS client to a Windows User account.
To verify the Inheritance of additional ACEs on new subdirectories and files created by a non-root Unix user, on the Windows NFS server I used the right click properties, security tab context menu, then Advanced to list all the ACEs and looked at the far
Column reflecting if it applied to [This folder only, or This folder and Subdirectories, or This folder and subdirectories and files]
5. All new Subdirectories and files createdby the non-root user had a [Non-Inheritance] ACE created for them.
6. I turned a [Non-Inheritance] ACE into an [Inheritance] ACE by selecting it then clicking [Edit] and using the Drop down to select [This folder, subdirs and files] then I went back to the NFS client and created more subdirs and files. Then back to the
Windows NFS server and checked the new subdirs and folders and they did Inherit the Windows NFS server ACE! - However the UID/GID of the subdirs and folders remained unchanged, they did not reflect the new "Effective" ownership or group membership.
7. I "believe" because I was using UUUA and working "behind" the UID/GID presentation layer for the NFS client, it did not update that presentation layer. It might do that "if" I were using a Mapping mechanism and mapped UID/GID to Windows User SIDs and
Group SIDs. Windows 2008r2 no longer has a "simple" Mapping server, it does not accept flat text files and requires a Schema extension to Active Directory just to MAP a windows account to a UID/GID.. a lot of overhead. Windows Server 2012 accepts flat text
files like /etc/passwd and /etc/group to perform this function and is next on my list of things to see if that will update the UID/GID based on the Windows ACE entries. Since the Local ACE take precedence "over" Inherited ACEs there could be a problem. The
Inheritance appears to be intended [only] to retain Administrative rights over user created subdirs and files by adding an additional ACE at the time of creation.
8. I did verify from the NFS client side in Linux that "Even though" the UID/GID seem to reflect the local non-root user should not have the ability to traverse or create new files, the "phantom" NFS Server ACEs are in place and do permit the function..
reconciling the "view" with "reality" appears problematic, unless the User Mapping will update "effective" rights and ownership in the "view"
-- John Willis, Facebook: John-Willis, Skype: john.willis7416

Similar Messages

  • How to configure AD on windows 2012 server for Exchange 2013 internal and external email flow

    Dear Experts,
    I have to configure exchange 2013 on Windows server 2012 STD. Company has registered Static IP addresses and can get the MX record pointing to any of this Static IP.  
    The registered domain name is e.g.  contoso.com. 
    a. What should I use as domain name on AD? contoso.com or contoso.local
    b. Is it recommended to have two different servers  for AD and Exchange?
    c. What should be my connector settings for mail flow?
    d. how can I set 2 email servers in company for load balancing?

    Hi,
    a, I suggest use contoso.com as domain name. It is convenient to add urls into our certificate for internal and external mail flow.
    b, Recommended that installing AD
    and Exchange Server on two separate
    Servers. If Exchange Server downed unfortunately, it can prevent AD server from crushing at the same time.
    c, Found some articles for your reference:
    Configure Mail Flow and Client Access
    http://technet.microsoft.com/en-us/library/jj218640(v=exchg.150).aspx
    Configuring Outbound Mail Flow in Exchange Server 2013
    http://exchangeserverpro.com/configuring-outbound-mail-flow-in-exchange-server-2013/
    d, Load Balancing
    http://technet.microsoft.com/en-us/library/jj898588(v=exchg.150).aspx
    Hope it is helpful
    Thanks
    Mavis
    Mavis Huang
    TechNet Community Support

  • New files and folders missing Group "Access is Denied"

    We have recently changed all of our XP machines over to Windows 7 and have now noticed that when a user creates new files or folders on the network it's not adding access for all users.  The only way around this is to open the file/folder on the users
    machine it was created on and edit the "Group or user name" under the Security tab.  Even as an administrator I'm unable to open any of these files/folders.
    Our server is SBS 2011.

    Hello,
    please post the SHARE permissions from the folder that is used also. Therefore open the folder properties, SHARING tab and open the Advanced permissions.
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • I want rsync only download new files and keep old files

    I install Arch i686 in home and in home I do not have internet connection , so at work I download all packages I need with this command
    rsync -avrt --bwlimit=58 rsync://mirror.datacenter.by/arch//extra/os/any/ /home/ddd/i686/
    and move them to home and then copy them to
    /var/cache/pacman/arch
    and install packages with pacman
    after two days , I run this command
    rsync -avrt --bwlimit=58 rsync://mirror.datacenter.by/arch//extra/os/any/ /home/ddd/i686/
    and I see rsync get last packages again and use many Bandwidth
    how I tell rsync only download new files and keep old files

    rsync manpage says the following:
    -u, --update                skip files that are newer on the receiver
          --inplace               update destination files in-place
          --append                append data onto shorter files
          --append-verify         --append w/old data in file checksum
    I guess you need to add -u flag.
    Reading manpages is the highest virtue in GNU/Linux.

  • How to create new file and popup a Save As Dialog?

    I want to create a new file and then popup a Save As Dialog to save the new created file.
    I have tried to use the JFileChooser as the following code:
    =============================================
    JFileChooser jfc = new JFileChooser();
    File f = new File("c:\\text.txt");
    jfc.setSelectedFile(f);
    int returnVal = jfc.showSaveDialog(this);
    if(returnVal == JFileChooser.APPROVE_OPTION) {
    f = jfc.getSelectedFile();
    =============================================
    I can't found the created file execute the program, anyone can tell me whats going wrong of my code or give me some advice?
    Thanks a lot.

    Actally, I want to generate a file and specific the
    name and the location to save it.
    And solution to do this if don't use the JFileChooser?Use a JFileChooser to choose a file name (you can select the directory and type the filename into a field). Once you have the file name you can open a FileOuputStream or FileWriter and write to the file you have just defined. If this file does not exist then it will be created.
    If you want to confirm before overwriting an existing file then just put up a confirm dialog if the file exists (File.exists()).

  • I keep getting write errors (-50) when I try to create new files or folders on my Gen 5 Airport Extreme USB disk.

    Write errors (-50) when I try to create new files or folders on my Airport Extreme USB disk. Restarting the Airport Extreme seems to solve the issue. Any idea why this occurring? It doesn't seem to be OS specific, meaning I can't write to the drive from a Windows PC or a MacBook Pro.

    Although, I would consider it rare, it is quite possible that this drive is just not 100% compatible with the AirPorts. Typically, in these cases, the AirPort will not even recognize the drive at all ... or it will, but not allow you to access it. I actually haven't come across a case where you can read but not write to a drive consistently or vice versa ... except from Windows-based computers. Sorry!

  • PSE11-Can't Make New Files and Opening Old Files

    I've had PSE11 for a couple of months now and it was working fine about two days ago when i last used it. But today when I opened it up it started to refuse to do anything file related. It won't let me create a new file and it won't let me open any files.
    With the new files I cant even get the dialouge box to pop up to select a size of the file and name. It just runs processes for a couple of seconds and than nothing.
    And with the open files I can't get it to open anything. It won't open pictures, photoshop files, etc. It just sits there like I never gave it a command.
    I all ready checked to make sure the program was up to date. Which it is so I'm not sure what is causing this problem.

    Hey so it magically started working again for a while on its own. I did nothing to it, it just decided to start working randomly. And now its back to not working again. I didn't mess with anything. I didn't even install anything not even a Windows update. It just started working again. And then it stopped just as quickly as it started.
    Though now I can at least get the open command to pop up. But I can't get the actual photos to open or it to do anything beyond that.

  • Windows 7 SP1 client file lock on network share hosted ny WIndows 2012 Server

    Hello
    I have one strange problem after migration from Windows 2003 Server to Windows 2012 Server R2 Standard. 
    All migration tasks went well but two things do not work.
    In Computer Management you have The Opened Files feature and if you open any file that is located on the network share hosted by Windows 2012 R2 form Windows 7 SP1 and then close it
    it remains open in the Opened Files tab (even if you wait an hour).  There is no problem with Windows XP SP3. The issue exist only with Windows 7.
    The session view of sessions to the file server do not work. If I try to open it I get the message that the application is not responding. 
    Can someone help me with that ?
    About the environment:
    It is one server Domain migrated form 2003 to 2012R2.
    The domain and forest level was raised to 2012 R2.
    I have made clean install of Windows 2012 R2 and then migrated AD. 
    Best Regards
    Sebastian Sala

    Hi Sebastian,
    >>There is no problem with Windows XP SP3. The issue exist only with Windows 7.
    T>>he session view of sessions to the file server do not work. If I try to open it I get the message that the application is not responding. 
    Based on the description, please check event logs in Event Viewer to see if there were some related events logged. Besides, does this phenomenon happen all Windows 7 clients? We can try to restart the client to see if it helps.
    Best regards,
    Frank Shen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Will I loose all my files and photos when I upgrade from 10.5.8 to Snow leopard

    I have purchased Mac OS X Snow Leopard from the Mac store and I am ready to install it. Will I loose all my files and photos when I install it ?  I am upgrading from 10.5.8 to 10.6.3 Snow leopard.

    Before embarking on a major OS upgrade, it would be wise, advisable and very prudent if you backup your current system to an external connected and Mac formatted Flash drive OR externally connected USB, Thunderbolt or FireWire 800, Mac formatted hard drive. Then, use either OS X Time Machine app to backup your entire system to the external drive OR purchase, install and use a data cloning app, like CarbonCopyCloner or SuperDuper, to make an exact and bootable copy (clone) of your entire Mac's internal hard drive. This step is really needed in case something goes wrong with the install of the new OS or you simply do not like the new OS, you have a very easy way/procedure to return your Mac to its former working state.

  • Windows 2012 Server Remote Desktop Virtualization + Linux Clients

    Hello!
    I wonder if anyone could shed a little light on this.
    We want to implement a Windows 2012 Server with Remote Desktop Virtualization for our office, which has around 12 users. Our company has its core apps developed in VB6.0, and those apps use MySQL as their database. We want clients to run Linux, which will
    have no other function than to connect and to Windows 2012 Server and display the remote session. Users need to work as usual, as they would in a local version of a Windows Desktop.
    Can this be done? If yes, is the Standard version of Windows 2012 Server the best to accomplish this?
    Thank you!

    Hi,
    Add to Tim, you need to acquire CALs for every user (About 12 in your case).
    Remote Desktop Services Client Access Licenses (RDS CALs)
    http://technet.microsoft.com/en-us/library/cc753650.aspx
    Client Access Licenses and Management Licenses
    http://www.microsoft.com/licensing/about-licensing/client-access-license.aspx
    In addition, although AD is recommended, you can run RDS in a workgroup.
    Regarding how to setup RDS on a single server, you can refer to the following:
    Deploying the RDS Quick Start deployment type in Windows Server 2012 (for Session Virtualization)
    http://social.technet.microsoft.com/wiki/contents/articles/10421.deploying-the-rds-quick-start-deployment-type-in-windows-server-2012-for-session-virtualization.aspx
    Deploying RDS 2012 Single Server – Session Based deployment
    http://ryanmangansitblog.wordpress.com/2013/03/11/deploying-rds-2012-single-server-session-based-deployment/
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Hope this helps.
    Jeremy Wu
    TechNet Community Support

  • Creating new user and group in BPEL PM.

    Hi,
    Please tell me how to cerate new user and groups in BPEL PM.
    I understand that BPEL PM uses jazn files to keep user information . I would like to know the steps to create new users and gourps in BPEL PM.
    Thanks

    Please refer this link http://download.oracle.com/docs/cd/E12483_01/integrate.1013/b28982/security.htm#CDDBJCHD and also you can create users/roles through EM (Enterprise Manager). Here even you can able to specify their roles.
    regards
    Rajesh A

  • New Icloud Terms and Conditions window pops up every time I try to check my email, or when I open setting. My email doesn't load because of this, so I haven't been able to check my email for months.

    'New Icloud Terms and Conditions' window pops up every time I try to check my email, or when I open setting. My email doesn't load because of this, so I haven't been able to check my email for months. When I click, 'view terms' it takes me to my Icloud section in settings, but the terms don't pop up. I plugged it into my iTunes to see if it would pop up, but that didn't work either. My phone is updated, and I'm pretty sure I already accepted the new terms and conditions on the last update a few months back.

    Hi munaxnight,
    If you are having issues with your iPhone continuing to ask you to accept terms and conditions, you may want to try some things to troubleshoot.
    First, quit all running applications and test again -
    Force an app to close in iOS
    Next, I would try restarting and if needed resetting the iPhone -
    Restart or reset your iPhone, iPad, or iPod touch
    If the issue is still present, you may want to restore the iPhone as a new device -
    How to erase your iOS device and then set it up as a new device or restore it from backups
    Thanks for using Apple Support Communities.
    Best,
    Brett L  

  • I renamed a power point a file and now when I try to open it it keeps giving me the error code -108. If I try to open or copy it say: The operation can't be completed because one or more required items can't be found. (Error code -43). What do I do?

    I renamed a power point a file and now when I try to open it it keeps giving me the error code -108. If I try to open or copy it say: The operation can’t be completed because one or more required items can’t be found. (Error code -43). What do I do?

    Post in Microsoft's Powerpoint (Mac) message boards.

  • How to create a new user and group on command line?

    Hi,
    I am trying to install INN, the news server on OS X.4.8 (non-server), but it requires me to create a user and group, both called 'news'.
    I know this has something to do with using Netinfo to create them, but I am logged in remotely via ssh and I can't use Netinfo Manager.
    How do I create new users and groups via the command line.
    Thanks for any help.
    PowerMac G5 2x2.7GHz   Mac OS X (10.4.8)  

    I've put some shell scripts that do this here,
    and descriptions
    add_user
    addgroup

  • New Platform Support for ColdFusion 10 and ColdFusion Builder 2.0.1: Windows 8 and Windows 2012 Serv

    Microsoft Windows 8 and Microsoft Windows 2012 server are now supported platforms for ColdFusion 10. The new Windows installers are available for download to all retail and licensing customers as well on the trials download page.
    The ColdFusion Builder 2.0.1 installers have also been updated to support Windows 8. The existing MAC OS X installer for ColdFusion Builder 2.0.1 has also been certified to now support MAC OS X 10.8.
    Refer this technote for more details about the support.

    @Adam @CarlV
    >what's the version number when you dump the server scope?
    ColdFusion Server - Evaluation 10,0,8,284032
    OK I see, the I button reports differently to Settings Summary.
    About ColdFusion »
    System Information 
    Server Details 
    Server Product  ColdFusion 
    Version  10,0,8,284032 
    Tomcat Version  7.0.23.0 
    Edition  Enterprise (Trial)   
    Serial Number    
    Operating System  Windows Server 2012   
    OS Version  6.2   
    Update Level  /D:/ColdFusion10/cfusion/lib/updates/chf10000008.jar   
    Server Settings > Settings Summary
    System Information 
    Server Details 
    Server Product  ColdFusion 
    Version  ColdFusion 10,284032 
    Edition  Enterprise (Trial)   
    Operating System  Windows Server 2012   
    OS Version  6.2   
    Update Level  /D:/ColdFusion10/cfusion/lib/updates/chf10000008.jar   
    Adobe Driver Version  4.1 (Build 0001)   
    Regards Carl M.

Maybe you are looking for

  • Cannot log in to Google "Accounts" with Safari

    I cannot seem to login and use Google Services with Safari 2.04. This started when I discovered I was unable to log in to google calendar in Safari, and became a support ticket to Google (which is still pending) and is really confounding me. What hap

  • Garbled Characters in Print as .pdf

    I am using Acrobat Pro, version 9.4.4  Windows 7, 64 bit This issue has recently happened, before this everything was working perfectly... When I go to print something, (say a web email) using the .pdf printer so I can save a copy to my desktop, the

  • Force a required login in a running wd abap application

    hi folks how can i force the user to make a login in a running wd abap application. background: user is loggid in with a default user and has to be forced to use another userid/password. kind regards, oliver

  • CSAP_MAT_BOM_MAINTAIN to create a BOM

    Hi, i have to use the FM CSAP_MAT_BOM_MAINTAIN to create a BOM but it doesn't work... Any suggest? Thanks Salvatore

  • Serialization Error

    When trying to export a Quictime movie to mpeg2 (using Quicktime 7 Pro) I get the following message; Serialization Error DVD Studio Pro must be serialized first in order to run Quicktime mpeg encoder. I get the same error message when exporting from