|
|||
1. Security Services (Overview) Part II System, File, and Device Security 2. Managing Machine Security (Overview) 3. Controlling Access to Systems (Tasks) 4. Virus Scanning Service (Tasks) 5. Controlling Access to Devices (Tasks) Configuring Devices (Task Map) Configuring Device Policy (Task Map) Managing Device Allocation (Task Map) 6. Using the Basic Audit Reporting Tool (Tasks) 7. Controlling Access to Files (Tasks) Part III Roles, Rights Profiles, and Privileges 8. Using Roles and Privileges (Overview) 9. Using Role-Based Access Control (Tasks) 10. Role-Based Access Control (Reference) Part IV Solaris Cryptographic Services 13. Solaris Cryptographic Framework (Overview) 14. Solaris Cryptographic Framework (Tasks) 15. Solaris Key Management Framework Part V Authentication Services and Secure Communication 16. Using Authentication Services (Tasks) 19. Using Solaris Secure Shell (Tasks) 20. Solaris Secure Shell (Reference) 21. Introduction to the Kerberos Service 22. Planning for the Kerberos Service 23. Configuring the Kerberos Service (Tasks) 24. Kerberos Error Messages and Troubleshooting 25. Administering Kerberos Principals and Policies (Tasks) 26. Using Kerberos Applications (Tasks) 27. The Kerberos Service (Reference) 28. Solaris Auditing (Overview) 29. Planning for Solaris Auditing 30. Managing Solaris Auditing (Tasks) |
Allocating DevicesDevice allocation reserves the use of a device to one user at a time. Devices that require a mount point must be mounted. How to Allocate a DeviceBefore You BeginDevice allocation must be enabled, as described in How to Make a Device Allocatable. If authorization is required, the user must have the authorization.
Example 5-7 Allocating a MicrophoneIn this example, the user jdoe allocates a microphone, audio. % whoami jdoe % allocate audio Example 5-8 Allocating a PrinterIn this example, a user allocates a printer. No one else can print to printer-1 until the user deallocates it, or until the printer is forcibly allocated to another user. % allocate /dev/lp/printer-1 For an example of forcible deallocation, see Forcibly Deallocating a Device. Example 5-9 Allocating a Tape DriveIn this example, the user jdoe allocates a tape drive, st0. % whoami jdoe % allocate st0 TroubleshootingIf the allocate 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. How to Mount an Allocated DeviceBefore You BeginThe user or role has allocated the device. To mount a device, the user or role must have the privileges that are required for mounting the device. To give the required privileges, see How to Authorize Users to Allocate a Device.
Example 5-10 Allocating a Diskette DriveIn this example, a user assumes a role that can allocate and mount a diskette drive, fd0. The diskette is formatted with a PCFS file system. % roles devicealloc % su - devicealloc Password: <Type devicealloc password> $ mkdir /home/devicealloc/mymnt $ chmod 700 /home/devicealloc/mymnt $ list_devices -l ... device: fd0 type: fd files: /dev/diskette /dev/rdiskette /dev/fd0a ... $ allocate fd0 $ mount -o ro -F pcfs /dev/diskette /home/devicealloc/mymnt $ ls /home/devicealloc/mymnt List of the contents of diskette Example 5-11 Allocating a CD-ROM DriveIn this example, a user assumes a role that can allocate and mount a CD-ROM drive, sr0. The drive is formatted as an HSFS file system. % roles devicealloc % su - devicealloc Password: <Type devicealloc password> $ mkdir /home/devicealloc/mymnt $ chmod 700 /home/devicealloc/mymnt $ list_devices -l ... device: sr0 type: sr files: /dev/sr0 /dev/rsr0 /dev/dsk/c0t2d0s0 ... ... $ allocate sr0 $ mount -o ro -F hsfs /dev/sr0 /home/devicealloc/mymnt $ cd /home/devicealloc/mymnt ; ls List of the contents of CD-ROM TroubleshootingIf the mount command cannot mount the device, an error message is displayed: mount: insufficient privileges. Check the following:
Contact your administrator if you still cannot mount the allocated device. How to Deallocate a DeviceDeallocation enables other users to allocate and use the device when you are finished. Before You BeginYou must have allocated the device.
Example 5-12 Deallocating a MicrophoneIn this example, the user jdoe deallocates the microphone, audio. % whoami jdoe % deallocate audio Example 5-13 Deallocating a CD-ROM DriveIn this example, the Device Allocator role deallocates a CD-ROM drive. After the message is printed, the CD-ROM is ejected. $ whoami devicealloc $ cd /home/devicealloc $ umount /home/devicealloc/mymnt $ ls /home/devicealloc/mymnt $ $ deallocate sr0 /dev/sr0: 326o /dev/rsr0: 326o … sr_clean: Media in sr0 is ready. Please, label and store safely. |
||
|