Check for sec_initial_uid() instead of uid==0 in dfs management