![]() |
![]() |
| ||||||||||||||
|
# cd /etc/security/dev # touch device-name # chmod 600 device-name # chown bin device-name # chgrp bin device-name |
How to Change Which Devices Can Be AllocatedThis procedure defines which devices can be used with the device allocation mechanism.
Become superuser or assume an equivalent role.
Determine which devices are listed in the /etc/security/device_allocate file.
Decide if there are devices that are not in the device_allocate file, yet should be made allocatable.
Edit the device_allocate file and add the new device.
Each entry should use the following format:
device-name;device-type;;;;program |
| device-name | Specifies the name of the device |
| device-type | Specifies the device type |
| program | Specifies the purge program to be run |
How to Allocate a DeviceBecome superuser or assume an equivalent role.
Use the allocate command with a device that is specified by device name.
sar1% allocate st0 |
You can also allocate a device by device type by using the -g option to the allocate command.
If the command cannot allocate the device, an error message is displayed in the console window. For a list of allocation error messages, see the allocate(1) man page.
Only the user who ran the allocate command can use the printer.
sarl% allocate /dev/lp/chestnut |
How to Deallocate a DeviceDeallocation enables other users to allocate and use the device when you are finished.
Deallocate a device by using the deallocate command followed by the device file name.
sar1% deallocate st0 |
To deallocate a printer that is named chestnut, type the following command:
# deallocate /dev/lp/chestnut |
Devices that a user has allocated are not automatically deallocated when the process terminates or when this user logs out. You most commonly need to use the following form of the deallocate command when a user forgets to deallocate a specific device. The following command deallocates the device so that others users can allocate the device.
# deallocate -F st0 |
Caution - You can deallocate all devices only at system initialization time.
# deallocate -I |
Previous Contents Index Next ![]() |