12/02/94 All Files May Be Owned by Root After mksysb Restore SPECIAL NOTICES Information in this document is correct to the best of our knowledge at the time of this writing. Please send feedback by fax to "AIXServ Information" at (512) 823-4009. Please use this information with care. IBM will not be responsible for damages of any kind resulting from its use. The use of this information is the sole responsibility of the customer and depends on the customer's ability to eval- uate and integrate this information into the customer's operational environment. +----------------------------------------------------------+ | | | NOTE: The information in this document has NOT been | | verified for AIX 4.1. | | | +----------------------------------------------------------+ PROBLEM This problem only occurs with AIX versions prior to 3.2.4. Due to a defect in the pax command, restoring from a mksysb tape can result in all of the files being owned by root. The pax command checks the /etc/passwd file and, if the owner of the file is not listed, makes root the owner. Since the real /etc/passwd file is on the tape, the default passwd file (which does not have entries for any of the users) is used. This has been corrected by APAR IX30655 which is part of the 3.2.4 PMP tape. WORKAROUND The mksysb tape has saved the proper ownership for the files, and you can change the files to their proper owner- ship with the following steps. 1. Mount the mksysb tape and run the following script. It will create a file with the necessary commands to correct the ownership of the files. NOTE: The script can be modified to fit special requirements. cd /tmp tctl -f /dev/rmtx rewind tctl -f /dev/rmtx.1 fsf 3 tar -tvf /dev/rmtx | awk '{ if ( NF == "9" ) printf ("chown %s.%s %s\n",$2,$3,$9) }' > mksysb.out chmod 755 mksysb.out After running the above script, you can edit mksysb.out if you wish to make any changes to it before executing it. All Files May Be Owned by Root After mksysb Restore 1 12/02/94 2. Execute the file "mksysb.out". It will change all the files to their correct ownership. All Files May Be Owned by Root After mksysb Restore 2 12/02/94 READER'S COMMENTS Please fax this form to (512) 823-4009, attention "AIXServ Informa- tion". You may also e-mail comments to: elizabet@austin.ibm.com. These comments should include the same customer information requested below. Use this form to tell us what you think about this document. If you have found errors in it, or if you want to express your opinion about it (such as organization, subject matter, appearance) or make sug- gestions for improvement, this is the form to use. If you need technical assistance, contact your local branch office, point of sale, or 1-800-CALL-AIX (for information about support offer- ings). These services may be billable. Faxes on a variety of sub- jects may be ordered free of charge from 1-800-IBM-4FAX. Outside the U.S. call 415-855-4329 using a fax machine phone. When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your comments in any way it believes appropriate without incurring any obligation to you. NOTE: If you have a problem report or item number, supplying that number may help us determine why a procedure did or did not work in your specific situation. Problem Report or Item #: Branch Office or Customer #: Be sure to print your name and fax number below if you would like a reply: Name: Fax Number: ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ ______________________________________________________________________ END OF DOCUMENT (mksysb.root.own.all.bak, 4FAX# 2503) All Files May Be Owned by Root After mksysb Restore 3