Go to main content

Securing Systems and Attached Devices in Oracle® Solaris 11.3

Exit Print View

Updated: April 2019
 
 

Forcibly Allocating or Deallocating a Device

You can forcibly allocate or deallocate a device.

You must become an administrator who is assigned the solaris.device.revoke authorization to perform these actions. For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

Determine whether you have the appropriate authorizations in your role.

$ auths
solaris.device.allocate solaris.device.revoke

Forcibly Allocating a Device

Forcible allocation is used when someone has forgotten to deallocate a device. Forcible allocation can also be used when a user has an immediate need for a device.

Use the allocate -U command to forcibly allocate the device to the user who needs the device. In this example, a USB flash drive is forcibly allocated to the user jdoe.

$ allocate -U jdoe

Forcibly Deallocating a Device

Because devices that a user has allocated are not automatically deallocated when the process terminates or when the user logs out, you might have to use forcible deallocation when a user has forgotten to deallocate a device.

Use the deallocate –f command to forcibly deallocate the device as follows:

$ deallocate -f /dev/lp/printer-1

In this example, a printer is forcibly deallocated so it is available for allocation by another user.