Enabling ownership preservation for objects on CIFS volumes
To preserve the ownership of objects in Copy and Move actions between CIFS volumes, add an admin knob.
Before you begin
About this task
- Objects are copied or moved between CIFS servers in different domains but the user name of the source object owner is defined in both domains. In this case, the user in the target server domain owns the copied or moved object. For example, the user
JohnDoe
is defined in the source domainSupport
and in the target domainService
. Thus, objects on the server in the source domain are owned by userSupport/JohnDoe
. After being copied or moved to the server in the target domain, the objects are owned by userService/JohnDoe
. - Objects are copied or moved between CIFS servers in different domains but the user name of the source object owner is not defined in the target domain. In this case, the copied or moved object on the target server is owned by the user whose credentials are used for connecting to the target server. For example, the source objects are owned by the local user
JohnDoe
. This user is not defined in the target domain. The credentials of userJaneDoe
are used for connecting to the target server. After being copied or moved to the server in the target domain, the objects are owned by userJaneDoe
. - If the owner information on the target server cannot be resolved, for example, because a slow connection caused a query timeout, the object on the target server is owned by the target's Domain Administrator.
Procedure
What to do next
psql -U dfuser dfdata -c "DELETE FROM public.adminknobs where name='smb_set_user_policy';"
This also requires restarting services.