Riva CRM Integration - Documentation and Knowledge Base

How to Change Home Directory Ownership

Article ID: 144
Last updated: 13 Oct, 2010

Question - a customer asked:

"Is there any way with Omni\EMU to change the ownership of a home directory. Since we had to move users from a 5.1 server to NW 6.5 server with NSS volumes, I had to manually copy all the users home dirs. Now all their data is associated with my account."

Answer:  EMU can be used to re-associate trustee assignments.  It can't be used to change file ownership.  However, you can use a combination of EMU and Excel to create a batch file that should work fine for you.  The following "Omni-flagnew-owner-Home.csv" spreadsheet file shows you the end result.  Following are the steps:

  1. Use EMU to export the user login name and home directory to a .csv file.
  2. Open the .csv file in Excel.
  3. Change the order of the columns and insert new columns as per the "Omni-flagpnew-owner-Home.csv" sample:  Command, Home Directory, Sub, Name, Login Name
  4. Your objective is to use the Concatenate function in Excel to create the appropriate Flag command:     

    flag \\DATA-01\VOL1\OmniExec\Aldo\*.* /S /NAME=Aldo

    Note the space at the end of the contents of the Command and Sub columns.

  5. Then, simply copy the G column into a text file called NewOwn.bat and run the bat file to execute the command.
Article ID: 144
Last updated: 13 Oct, 2010
Revision: 1
Views: 5331