Adopting Registry OrphansAlthough dcecp displays object names and you identify registry objects by name, the DCE Security Service uses UUIDs to identify objects internally. When you create a registry object, the DCE Security Service automatically sets up an association between the object name and a UUID that it uses to identify the object. When you delete registry objects, you delete the association between the registry object and the UUID that identifies the object. Orphans are objects owned by UUIDs that are not associated with a principal or group because the principal or group has been deleted. For example, if you delete a principal from the registry, you also delete the association between the name used to identify the principal externally and the UUID used to identify the principal internally. Any objects (files, programs) owned by the deleted principal are now owned internally by a UUID no longer associated with a principal. If no other principal, group, or organization has access rights to the object, the object cannot be accessed at all and is now an orphan. To solve this problem, you can use the dcecp principal create, group create, and org create commands with the -uuid option to create a principal, group, or organization with the same UUID as the UUID that owns the orphaned object and thus "adopt'' the orphaned object. Note: When you create a new registry object, you have no way of specifying the UUID associated with the object; therefore, you cannot simply add a new registry object of the same name to adopt the orphan. The -uuid option creates a principal, group, or organization and lets you specify the UUID with which it should be associated instead of assigning it automatically. Except for the manner in which it is created, a principal, group, or organization created by these commands is no different from any other principal, group, or organization. The following examples show how to use this option to create a principal, group, or organization to adopt an orphaned registry object. To create a principal associated with the UUID that owns the orphaned object, use the following command:
principal create name -uuid uuid [-fullname fullname]\ To create a group associated with the UUID that owns the orphaned object, use the following command:
group create name -uuid uuid [-fullname string] \ To create an organization associated with the UUID that owns the orphaned object, use the following command: group create name [-fullname string] [-gid UNIX_number] where:
name
uuid nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn
string
UNIX_number
object_creation_quota
-inprojlist Note: In the current implementation of DCE, UNIX numbers are embedded in UUIDs. If you try to create a group or organization to adopt an orphaned object and fail, it could be because the embedded UNIX number is invalid because it does not fall within the range of valid UNIX numbers set for the cell as a registry property. If this is the case, you must reset the range of valid UNIX number to include the UNIX number embedded in the UUID and then try again to adopt the object. See Maintaining Policies and Properties for information on setting the valid range of UNIX numbers.
|