After you have copied the sudoers file to the computer where Access Manager is installed, you can import the sudoers file into a selected Centrify zone.
To import the sudoers file
- Open Access Manager.
Expand Zones and the individual parent or child zones required to select the zone name into which you want to import the sudoers file.
In most cases, if you have a sudoers file that covers multiple computers, you should import it into a parent zone so that it is available to multiple child zones. If the file is used on a single computer, you might select the specific child zone that contains that computer.
- Right-click, then select Import sudoers file.
- Click Browse and navigate to the location in which you copied the sudoers file, select the file, click Open, then click Next.
Review the contents of the file to verify you are ready to import, then click Next.
If you have previously imported a sudoers file—for example, from a different computer—importing a new sudoers file overwrites the data from the previous import. If you have not yet converted the previous sudoers information to rights and rights in Access Manager, click Cancel to exit the wizard.
For more information about convert the imported information to Centrify rights and roles, see Converting sudoers aliases and user specifications before importing an another sudoers file.
Review the parsing summary for errors or warnings to verify whether you are ready to import, then click Next.
You can click Details to see the list of error and warnings, if applicable. From the list, you can select a specific error or warning, then click Go To to see the definition in the sudoers file. You can continue with the import if the list only displays warnings. If there are errors, you must fix them before continuing. Make note of any errors and warnings to fix, then click Close to close the Details list.
If the file contains errors, or if you want to fix warnings before importing, click Cancel to exit the wizard. You can then open the sudoers file in a text editor to fix, delete, or comment out the lines in the file, then save it. After you have modified the file, you can rerun the Import Sudoers File wizard.
- Click Finish to complete the import.
The import wizard creates a new node called Sudoers, which contains sub-nodes for the types of data contained in a sudoers file. For example, expand Sudoers to see the nodes for User Alias, Runas Alias, Host Alias, Command Alias, and User Specifications. If the Sudoers node is not visible, select Authorization, right-click, then click Refresh.
Some or all of the Sudoers sub-nodes might be empty depending on whether the sudoers file included definitions of that type. For example, if there are no user aliases defined in the sudoers file, the User Alias sub-node is displayed in Access Manager, but there are no entries under it.
You can now convert the sudoers data to rights, role definitions, and role assignments in the Centrify zone. If you intend to import more than one sudoers file into the same zone, you must convert the imported aliases and user specifications to rights, role definitions, and role assignments before importing another sudoers file.