After creating a file on Windows, why the owner is root and the group is bin on Linux?
Applies to
- ONTAP 9
- CIFS
- NFS
Answer
- If the advanced CIFS server option "Map Administrators to UNIX User 'root'"
-is-admin-users-mapped-to-root-enabledis set to true, Windows users who are members of theBUILTIN\Administratorsgroup are mapped to UNIX userrootunless they are explicitly mapped to a UNIX user - In ONTAP, the default local UNIX user
rooton each SVM has an User ID (UID) of 0 and a primary Group ID (GID) of 1, which has the local UNIX groupdaemon. With this configuration, files created by Windows users mapped to UNIX userrootwill show as owned by UNIX userroot(UID 0) and groupdaemon(GID 1) - For the files created by Windows users mapped to UNIX user
root, NFS clients may resolve Group ID (GID) 1 to UNIX groupbinbased on their local configuration (i.e. the/etc/groupfile or LDAP)
Additional Information
- Map the administrators group to root
- vserver cifs options modify
- If a Windows user is a member of the
BUILTIN\Administratorsgroup and an explicit user mapping exists for that user, the explicit name mapping takes precedence - The default value for this parameter is
true
