System Administration Guide: Devices and File Systems

ProcedureHow to Enable or Disable Read or Write Protection and Set a Password on Removable Media

You can apply a password with a maximum of 32 characters for removable media that support this feature.

You will receive a warning message if you attempt to apply a password on media that does not support this feature.

  1. Determine whether you want to enable or disable read protection or write protection and set a password. Select one of the following:

    • Enable read protection or write protection.


      $ rmformat -W enable device-name
      Please enter password (32 chars maximum): xxx
      Please reenter password:

      $ rmformat -R enable device-name
      Please enter password (32 chars maximum): xxx
      Please reenter password:
    • Disable read protection or write protection and remove the password.


      $ rmformat -W disable device-name
      Please enter password (32 chars maximum): xxx
      

      $ rmformat -R disable device-name
      Please enter password (32 chars maximum): xxx
      
  2. Verify whether the media's read protection or write protection is enabled or disabled.


    $ rmformat -p device-name
    

Example 2–5 Enabling or Disabling Read or Write Protection and Password Protection

This example shows how to enable write protection and set a password on a diskette.


$ rmformat -W enable /dev/rdiskette
Please enter password (32 chars maximum): xxx
Please reenter password: xxx

This example shows to disable read protection and remove the password on a diskette.


$ rmformat -R disable /dev/rdiskette
Please enter password (32 chars maximum): xxx
Please reenter password: xxx