Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Restore Authority (RSTAUT) command restores the private authorities to user profiles. This command restores the same object authority to specified objects in the user profile that each user profile had when all the profiles were saved by the Save System (SAVSYS) or the Save Security Data (SAVSECDTA) command. It allows existing authorities, given after the save, to remain. Authority cannot be restored to the user profiles until the profiles are first restored to the system by the Restore User Profile (RSTUSRPRF) command and all the objects (for which authority is being given) are restored to the same libraries where they were saved. The objects can be restored by the Restore Library (RSTLIB) or Restore Object (RSTOBJ) command. Documents and folders can be restored using the Restore Document Library Object (RSTDLO) command. Device configuration objects can be restored using the Restore Configuration (RSTCFG) command. Integrated file system objects can be restored by the Restore Object (RST) command.
If the whole system is being restored, the following sequence must be followed. Using the RSTAUT command must be the last step in the sequence.
Note: Steps 2 through 7 can be done more than once. For example, after the user profiles are restored (step 2), the user can restore only critical application libraries (step 3), followed by a restore of object authority (step 7). This supplies an operational system limited to using only the critical libraries. Later, the remaining user profiles can be restored, followed by the operations to restore the libraries and object authority.
If authorities for a user profile are restored using the RSTAUT command while all subsystems are ended, the user profile must be restored again before other authorities for it can be restored.
If one user profile is being restored, the following sequence must be followed. Using the RSTAUT command must be the last step.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
USRPRF | User profile | Single values: *ALL Other values (up to 300 repetitions): Generic name, name |
Optional, Positional 1 |
SAVASPDEV | Saved from ASP device | Name, *ALLAVL, *, *SYSBAS, *CURASPGRP | Optional |
RSTASPDEV | Restore to ASP device | Name, *SAVASPDEV, *SYSBAS | Optional |
Top |
Specifies the names of one or more user profiles to have their private authorities restored. The specified user profiles must first be restored using the Restore User Profile (RSTUSRPRF) command.
Single values
Other values (up to 300 repetitions)
Top |
Specifies the auxiliary storage pool (ASP) device from which private authorities were saved.
Top |
Specifies the auxiliary storage pool (ASP) device for which to restore the private authorities.
Top |
Example 1: Restore All Authorities
RSTAUT
This command restores to each user profile the authority to use each object that the profile had at the time when the system was saved. The user profiles and the libraries and their objects must be restored before the RSTAUT command is sent.
Example 2: Restore Authorities for Specific Users
RSTUSRPRF USRPRF(USER1 USER2 USER3 USER4) RSTLIB SAVLIB(USERLIB) RSTAUT USRPRF(USER1 USER2 USER3)
To each specified user profile that was successfully restored, this command restores the authority to use each object that the profile had at the time the system was saved. The user profiles and the libraries and their objects must be restored before the RSTAUT command is sent. Because USER4 was not specified in the RSTAUT command, its authorities are still available and may be restored at a later date.
Example 3: Restore Authorities for Specific Libraries
RSTUSRPRF USRPRF(*ALL) RSTLIB SAVLIB(USERLIBA) RSTLIB SAVLIB(USERLIBB) RSTLIB SAVLIB(USERLIBC) RSTAUT USRPRF(*ALL)
This command restores private authorities for all restored user profiles on the system. This includes authorities for all user profiles restored by the RSTUSRPRF command. Other user profiles on the system that did not have their authorities restored before these commands were specified are also restored by the RSTAUT(*ALL) command.
Example 4: Restore Authorities After Multiple RSTUSRPRF Commands
RSTUSRPRF USRPRF(USER1 USER2) RSTLIB SAVLIB(USERLIBA) RSTUSRPRF USRPRF(USER1 USER3) RSTLIB SAVLIB(USERLIBB) RSTAUT USRPRF(*ALL)
This command restores private authorities for USER2 and USER3 and for the most recent version of USER1. Because the user profiles have the same name, the second RSTUSRPRF command overlays the first version of USER1.
Example 5: Restore Libraries and Authorities to an Independent ASP
RSTUSRPRF USRPRF(*ALL) SAVASPDEV(*SYSBAS) RSTLIB SAVLIB(USERLIBA) RSTASPDEV(DIVISION1) RSTLIB SAVLIB(USERLIBB) RSTASPDEV(DIVISION1) RSTLIB SAVLIB(USERLIBC) RSTASPDEV(DIVISION1) RSTAUT USRPRF(*ALL) SAVASPDEV(*SYSBAS) RSTASPDEV(DIVISION1)
This example shows a way to move data and authorities to an independent auxiliary storage pool (ASP). The RSTUSRPRF command restores all user profiles and the private authority information saved from the system ASP (ASP number 1) and basic user ASPs (ASP numbers 2-32). The RSTLIB commands restore libraries USERLIBA, USERLIBB, and USERLIBC to the independent ASP named DIVISION1. The RSTAUT command restores authorities saved from the system ASP and basic user ASPs for all user profiles to objects that now exist on the DIVISION1 ASP.
Top |
*ESCAPE Messages
Top |