ALTFILE

Operation Notes

Usage

You use the ALTFILE command to alter a ￿le's c haracteristics. You can modify the owner (UID) and POSIX group (GID) for a ￿le, hierarc hical directory, MPE group or accoun t. You cannot alter the GID of MPE groups or accounts.

Required Capabilities

The user must have the appropriate privilege to c hange the requested attribute. To change the UID of a ￿le, y ou must be one of the follo wing:

The ￿le's account manager whose logon accoun t matches the GID of the ￿le and who has the MPE/iX accoun t manager capabilit y. In this case, ownername must specify a user belonging to the accoun t manager's logon account.

A system manager who has the MPE/iX system manager user capabilit y. In this case, ownername may specify any user existing in the user database.

To change the GID of a ￿le, y ou must be one of the follo wing:

The ￿le owner (a user whose logon name matc hes the UID of the ￿le). In this case, POSIXgroupname must specify the user's logon accoun t.

The ￿le's account manager whose logon accoun t matches the GID of the ￿le and who has the MPE/iX accoun t manager (AM) user capability . In this case, POSIXgroupname must specify the accoun t manager's logon account.

A system manager who has the MPE/iX system manager user capabilit y. In this case, POSIXgroupname may specify any GID existing in the group database.

You can use ALTFILE to modify multiple attributes at the same time. If y ou try modifying m ultiple attributes, all c hanges must succeed for an y to take e￿ect. If you do not specify an y attributes, the command has no e￿ect on the ￿le speci￿ed.

MPE/iX Commands 2-17