OSF DCE Administration Guide--Core Components

OSF DCE Administration Guide—Core Components
B.5.1 Adding a New Attribute
Use the dcecp modify command with the -add option to add a new attribute to an object
entity.
To add a new attribute, you must have previously added the new attribute to the
cds_attributes file on each host in the cell. You must also have write permission to the
entity to which you are adding new attributes.
For example, the following command adds the single-valued attribute (owner)toa
directory (/.:/admin) and assigns a value of Leland to the new attribute:
dcecp> directory modify /.:/admin -add {owner Leland}
The following command adds a new multivalued attribute (vegetables) to an object
(/.:/admin/garden) and assigns values of carrots and lettuce to the new attribute:
dcecp> object modify /.:/admin/garden -add {vegetables {carrots} {lettuce}}
B.5.2 Modifying the Value of an Existing Attribute
Use the dcecp modify command with the -change option to modify the value of an
existing attribute.
To modify the value of an attribute, you must have write permission to the name whose
attributes you are modifying.
For example, the following command changes the value of the owner attribute of the
/.:/admin directory from Leland to Peters:
dcecp> directory modify /.:/admin -change {owner Peters}
B.5.3 Removing an Attribute
Use the dcecp modify command with the -remove option to remove an attribute from
an object entity.
To remove an attribute, you must have write permission to the name whose attribute you
are removing.
To remove an attribute, use the modify command with the -remove and -types options.
For example, the following command removes the owner attribute from the /.:/admin
directory:
dcecp> directory modify /.:/admin -remove owner -types
B6 Tandem Computers Incorporated 124243