Trusted Solaris Administrator's Procedures

To Change or Add a Device Clean Script

For background, see "Using Device-Clean Scripts".

  1. Assume the System Administrator role and go to an ADMIN_LOW workspace.

  2. Use the Admin Editor to open a text file.

  3. Write the script so that all usable data is purged from the physical device and that it returns 0 for success.

  4. For devices with removable media, have the script attempt to eject the media if the user does not do so, and put the device into the allocate error state if the media is not ejected.

  5. Copy the ADMIN_LOW script into /etc/security/lib.

  6. Open the Device Allocation Manager from the Tools subpanel, and click the Device Administration button.

  7. Highlight the name of the affected device and click the Configure... button.

  8. Enter the name of the script in the Clean Program field.

  9. Click OK until the Device Allocation Manager closes.