| United States-English |
|
|
|
![]() |
Software DistributorAdministration Guidefor HP-UX 11i: HP Computers > Chapter 4 Managing
Software DepotsRegistering and Unregistering Depots (swreg) |
|
To make the software in a depot available for use across a network by other SD-UX commands, you must register the depot. You can also unregister a depot if you do not want it to be available. Depots are registered or unregistered in these ways:
The swreg command lets you explicitly register or unregister depots when the automatic registration features of swcopy or swremove are not enough. For example, you can use swreg to:
When does it make sense to use your software media as a registered depot versus using the media to create a network depot? In general, using media as a depot makes sense for small-scale use, such as when only one or two other systems need to access the media. If more systems will need to access the media, performance will be better if you create a network depot from the individual media. See “Additional Depot Management Tasks and Examples” for an example. Because SD-UX stores its objects in the file system, someone could build a "Trojan Horse" file system image of a software depot. This could breech the security of any system that installed products from the false depot. To protect systems from such a situation, SD-UX requires that depots be registered before software may be installed or copied from it. This check is always performed before granting access, except when swinstall is run by the local superuser.
To register a new depot or to unregister an existing depot, swreg requires read permission on the depot in question and insert permission on the host. To unregister a registered depot, the swreg command requires write permission on the host. See Chapter 9 “SD-UX Security ” for more information on permissions. swreg Syntaxswreg -l level [-u] [-v] [-C session_file] [-f object_file] [-S session_file] [-t target_file] [-x option=value] Options and Operands
Changing Command OptionsYou can change the behavior of this command by specifying additional command-line options when you invoke the command (using the -x option) or by reading predefined values from a file. The following table shows the defaults and options that apply to swreg: Table 4-5 swreg Command Options and Default Values
For More InformationSee Appendix A “Command Options” for complete descriptions of each default. To unregister a CD-ROM depot mounted at /mnt/cd, you would type: swreg -l depot -u /mnt/cd To register the same depot (mounted at /mnt/cd on the local host) as a depot to be available on the network, type: swreg -l depot /mnt/cd The following example enables direct access from one or two other systems to the HWEnable11i depot on the Support Plus CD, assuming the Support Plus CD is mounted at /cdrom: swreg -l depot /cdrom/HWEnable11i |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||