Contained WithinFind More DocumentationFeatured Support Resources | PDF로 이 문서 다운로드 (937 KB)
System Administration Commandsadd_allocatable(1M)NAME | Synopsis | Description | Options | Errors | Attributes | See Also NAME
Synopsis
/usr/sbin/add_allocatable [-f] [-s] [-d] -n name -t type -l device-list
[-a authorization] [-c clean] [-o key=value]
Descriptionadd_allocatable creates new entries for user allocatable devices that are to be managed by the device allocation mechanism. add_allocatable can also be used to update existing entries of such devices. add_allocatable can also create and update entries for non-allocatable devices, such as printers, whose label range is managed by the device allocation mechanism. add_allocatable can be used in shell scripts, such as installation scripts for driver packages, to automate the administrative work of setting up a new device. Use list_devices(1) to see the names and types of allocatable devices, their attributes, and device paths. Options
Errors
When successful, add_allocate returns an exit status of 0 (true). add_allocate returns a nonzero exit status in the event of an error. The exit codes are as follows: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.10 Last Revised 31 May 2006NAME | Synopsis | Description | Options | Errors | Attributes | See Also atohexlabel(1M)NAME | Synopsis | Interface Level | Description | Options | Exit Status | Files | Attributes | See Also | Notes NAME
Synopsis/usr/sbin/atohexlabel [human-readable-sensitivity-label] /usr/sbin/atohexlabel -c [human-readable-clearance] Interface LevelThis file is part of the Defense Intelligence Agency (DIA) Mandatory Access Control (MAC) policy. This file might not be applicable to other MAC policies that might be developed for future releases of Solaris Trusted Extensions software. Descriptionatohexlabel converts a human readable label into an internal text representation that is safe for storing in a public object. If no option is supplied, the label is assumed to be a sensitivity label. Internal conversions can later be parsed to their same value. This internal form is often hexadecimal. The converted label is written to the standard output file. If no human readable label is specified, the label is read from the standard input file. The expected use of this command is emergency repair of labels that are stored in internal databases. OptionsExit Status
The following exit values are returned: Files
AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoNotesThe stability of the command output is Stable for systems with the same label_encodings file. The stability of the command invocation is Stable for systems that implement the DIA MAC policy. NAME | Synopsis | Interface Level | Description | Options | Exit Status | Files | Attributes | See Also | Notes chk_encodings(1M)NAME | Synopsis | Interface Level | Description | Options | Errors | Attributes | Files | See Also | Notes NAME
Synopsis/usr/sbin/chk_encodings [-a] [-c maxclass] [pathname] Interface LevelThis file is part of the Defense Intelligence Agency (DIA) Mandatory Access Control (MAC) policy. This file might not be applicable to other MAC policies that might be developed for future releases of Solaris Trusted Extensions software. Descriptionchk_encodings checks the syntax of the label-encodings file that is specified by pathname. With the -a option, chk_encodings also prints a semantic analysis of the label-encodings file that is specified by pathname. If pathname is not specified, chk_encodings checks and analyzes the /etc/security/tsol/label_encodings file. If label-encodings file analysis was requested, whatever analysis can be provided is written to the standard output file even if errors were found. Options
ErrorsWhen successful, chk_encodings returns an exit status of 0 (true) and writes to the standard output file a confirmation that no errors were found in pathname. Otherwise, chk_encodings returns an exit status of nonzero (false) and writes an error diagnostic to the standard output file. AttributesSee attributes(5) for descriptions of the following attributes:
Files
See AlsoNotesThe stability of the syntactic checking is considered standard and controlled by DIA document DDS-2600-6216-93, Compartmented Mode Workstation Labeling: Encodings Format, September 1993. The stability of the command output is undefined. The stability of the command invocation is stable for systems that implement the DIA MAC policy. NAME | Synopsis | Interface Level | Description | Options | Errors | Attributes | Files | See Also | Notes hextoalabel(1M)NAME | Synopsis | Interface Level | Description | Options | Exit Status | Attributes | Files | See Also | Notes NAME
Synopsis/usr/sbin/hextoalabel [internal-text-sensitivity-label] /usr/sbin/hextoalabel -c [internal-text-clearance] Interface LevelThis file is part of the Defense Intelligence Agency (DIA) Mandatory Access Control (MAC) policy. This file might not be applicable to other MAC policies that might be developed for future releases of Solaris Trusted Extensions software. Descriptionhextoalabel converts an internal text label into its human readable equivalent and writes the result to the standard output file. This internal form is often hexadecimal. If no option is supplied, the label is assumed to be a sensitivity label. If no internal text label is specified, the label is read from the standard input file. The expected use of this command is emergency repair of labels that are stored in internal databases. OptionsExit Status
The following exit values are returned: AttributesSee attributes(5) for descriptions of the following attributes:
Files
See AlsoNotesThe stability of the command output is Stable for systems with the same label_encodings file. The stability of the command invocation is Stable for systems that implement the DIA MAC policy. NAME | Synopsis | Interface Level | Description | Options | Exit Status | Attributes | Files | See Also | Notes remove_allocatable(1M)NAME | Synopsis | Description | Options | Errors | Attributes | See Also NAME
Synopsis/usr/sbin/remove_allocatable [-f] -n name /usr/sbin/remove_allocatable [-f] [-d] -t dev-type Descriptionremove_allocatable removes entries of user allocatable devices from the device allocation mechanism. remove_allocatable also removes entries of some non-allocatable devices, such as printers, whose label range is managed by the mechanism. Options
Errors
When successful, remove_allocatable returns an exit status of 0 (true). remove_allocatable returns a nonzero exit status in the event of an error. The exit codes are as follows: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.10 Last Revised 31 May 2006NAME | Synopsis | Description | Options | Errors | Attributes | See Also smtnrhdb(1M)NAME | Synopsis | Description | Options | Examples | Exit Status | Files | Attributes | See Also NAME
Synopsis/usr/sadm/bin/smtnrhdb subcommand [auth_args] -- subcommand_args] Description
The smtnrhdb command adds, modifies, deletes, and lists entries in the tnrhdb database. smtnrhdb subcommands are: Options
The smtnrhdb authentication arguments, auth_args, are derived from the smc arg set. These arguments are the same regardless of which subcommand you use. The smtnrhdb command requires the Solaris Management Console to be initialized for the command to succeed (see smc(1M)). After rebooting the Solaris Management Console server, the first smc connection can time out, so you might need to retry the command. The subcommand-specific options, subcommand_args, must be preceded by the -- option. auth_argsThe valid auth_args are -D, -H, -l, -p, -r, and -u; they are all optional. If no auth_args are specified, certain defaults will be assumed and the user might be prompted for additional information, such as a password for authentication purposes. These letter options can also be specified by their equivalent option words preceded by a double dash. For example, you can use either -D or --domain. subcommand_argsNote: Descriptions and other arg options that contain white spaces must be enclosed in double quotes. ExamplesExample 1 Specifying the Template Name for a Wildcard IP AddressThe admin role specifies the template name, cipso_lan, for a series of hosts that use the IP address wildcard 192.168.113.0 on the local file system. Since no authorization arguments were specified, the administrator connects to port 898 of the local host on the local server with the file domain type, which are the defaults. The administrator is prompted for the admin password.
Example 2 Deleting an Entry in the tnrhdb DatabaseThe admin role connects to port 898 (which happens to be the default) of the LDAP server and deletes a host entry from the database by specifying its IP address, 192.168.113.8. Since the domain was not specified, the file domain type and local server are used by default. The administrator is prompted for the admin password.
Exit Status
The following exit values are returned: Files
The following files are used by the smtnrhdb command: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.10 Last Revised 26 Jun 2006NAME | Synopsis | Description | Options | Examples | Exit Status | Files | Attributes | See Also smtnrhtp(1M)NAME | Synopsis | Description | Options | Examples | Exit Status | Files | Attributes | See Also NAME
Synopsis/usr/sadm/bin/smtnrhtp subcommand [auth_args] -- [subcommand_args] Description
The smtnrhtp command adds, modifies, deletes, and lists entries in the tnrhtp database. smtnrhtp subcommands are: Options
The smtnrhtp authentication arguments, auth_args, are derived from the smc arg set and are the same regardless of which subcommand you use. The smtnrhtp command requires the Solaris Management Console to be initialized for the command to succeed (see smc(1M)). After rebooting the Solaris Management Console server, the first smc connection can time out, so you might need to retry the command. The subcommand-specific options, subcommand_args, must be preceded by the -- option. auth_argsThe valid auth_args are -D, -H, -l, -p, -r, and -u; they are all optional. If no auth_args are specified, certain defaults will be assumed and the user might be prompted for additional information, such as a password for authentication purposes. These letter options can also be specified by their equivalent option words preceded by a double dash. For example, you can use either -D or --domain. subcommand_argsNote: Descriptions and other arg options that contain white spaces must be enclosed in double quotes. ExamplesExample 1 Adding a New Entry to the Network Template DatabaseThe admin role connects to port 898 of the LDAP server and creates the unlabeled_ntk entry in the tnrhtp database. The new template is assigned a host type of unlabeled, a domain of interpretation of 1, minimum label of public, maximum label of restricted, and a default label of needtoknow. The administrator is prompted for the admin password.
Exit Status
The following exit values are returned: Files
The following files are used by the smtnrhtp command: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.10 Last Revised 26 Jun 2006NAME | Synopsis | Description | Options | Examples | Exit Status | Files | Attributes | See Also smtnzonecfg(1M)NAME | Synopsis | Description | Options | Examples | Exit Status | Files | Attributes | See Also NAME
Synopsis/usr/sadm/bin/smtnzonecfg subcommand [auth_args] -- [subcommand_args] Description
The smtnzonecfg command adds, modifies, deletes, and lists entries in the tnzonecfg database. smtnzonecfg subcommands are: Options
The smtnzonecfg authentication arguments, auth_args, are derived from the smc arg set and are the same regardless of which subcommand you use. The smtnzonecfg command requires the Solaris Management Console to be initialized for the command to succeed (see smc(1M)). After rebooting the Solaris Management Console server, the first smc connection can time out, so you might need to retry the command. The subcommand-specific options, subcommand_args, must be preceded by the -- option. auth_argsThe valid auth_args are -D, -H, -l, -p, -r, and -u; they are all optional. If no auth_args are specified, certain defaults will be assumed and the user can be prompted for additional information, such as a password for authentication purposes. These letter options can also be specified by their equivalent option words preceded by a double dash. For example, you can use either -D or --domain. subcommand_argsNote: Descriptions and other arg options that contain white spaces must be enclosed in double quotes. ExamplesExample 1 Adding a New Entry to the Zone Configuration DatabaseThe admin role creates a new zone entry, public, with a label of public, a policy match level of 1, and a shared MLP port and protocol of 666 and TCP. The administrator is prompted for the admin password.
Example 2 Modifying an Entry in the Zone Configuration DatabaseThe admin role changes the public entry in the tnzonecfg database to needtoknow. The administrator is prompted for the admin password.
Example 3 Listing the Zone Configuration DatabaseThe admin role lists the entries in the tnzonecfg database. The administrator is prompted for the admin password.
Exit Status
The following exit values are returned: Files
The following files are used by the smtnzonecfg command: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.10 Last Revised 26 June 2006NAME | Synopsis | Description | Options | Examples | Exit Status | Files | Attributes | See Also tnchkdb(1M)NAME | Synopsis | Description | Options | Examples | Attributes | Files | See Also | Notes NAME
Synopsis/usr/sbin/tnchkdb [-h path] [-t path] [-z path] Description
tnchkdb checks the syntax of the tnrhtp(4), tnrhdb(4), and tnzonecfg(4) databases. By default, the path for each file is: You can specify an alternate path for any or all of the files by specifying that path on the command line by using the -h (tnrhdb), -t (tnrhtp) and -z (tnzonecfg) options. The options are useful when testing a set of modified files before installing the files as new system databases. All three database files are checked for integrity. tnchkdb returns an exit status of 0 if all of the files are syntactically and, to the extent possible, semantically correct. If one or more files have errors, then an exit status of 1 is returned. If there are command line problems, such as an unreadable file, an exit status of 2 is returned. Errors are written to standard error. To avoid cascading errors, when there are errors in tnrhtp, the template names in tnrhdb are not validated. tnchkdb can be run at any label, but the standard /etc/security/tsol files are visible only in the global zone. Options
ExamplesExample 1 Sample Error MessageThe tnchkdb command checks for CIPSO errors. In this example, the admin_low template has an incorrect value of ADMIN_HIGH for its default label.
AttributesSee attributes(5) for descriptions of the following attributes:
Files
See AlsoNotesIt is possible to have inconsistent but valid configurations of tnrhtp and tnrhdb when LDAP is used to supply missing templates. NAME | Synopsis | Description | Options | Examples | Attributes | Files | See Also | Notes tnctl(1M)NAME | Synopsis | Description | Options | Attributes | Files | See Also | Notes | Warnings NAME
Synopsis/usr/sbin/tnctl [-dfv] [-h host [/prefix] [:template]] [-m zone:mlp:shared-mlp] [-t template [:key=val [;key=val]]] [-HTz] file] Descriptiontnctl provides an interface to manipulate trusted network parameters in the Solaris kernel. As part of Solaris Trusted Extensions initialization, tnctl is run in the global zone by an smf(5) script during system boot. The tnctl command is not intended to be used during normal system administration. Instead, if a local trusted networking database file is modified without using the Solaris Management Console, the administrator first issues tnchkdb(1M) to check the syntax, and then refreshes the kernel copy with this command:
See WARNINGS about the risks of changing remote host and template information on a running system. Options
AttributesSee attributes(5) for descriptions of the following attributes:
Files
See Alsosvcs(1), svcadm(1M), tninfo(1M), tnd(1M), tnchkdb(1M), zoneadm(1M), nsswitch.conf(4), protocols(4), services(4), tnrhdb(4), tnrhtp(4), tnzonecfg(4), attributes(5), smf(5) NotesThe tnctl service is managed by the service management facility, smf(5), under the service identifier:
The service's status can be queried by using svcs(1). Administrative actions on this service, such as refreshing the kernel cache, can be performed using svcadm(1M), as in:
WarningsChanging a template while the network is up can change the security view of an undetermined number of hosts. NAME | Synopsis | Description | Options | Attributes | Files | See Also | Notes | Warnings tnd(1M)NAME | Synopsis | Description | Options | Examples | Attributes | Files | See Also | Notes NAME
Synopsis/usr/sbin/tnd [-p poll-interval] Description
The tnd (trusted network daemon) initializes the kernel with trusted network databases and also reloads the databases on demand from an LDAP server and local files. tnd follows the order specified in the nsswitch.conf(4) file when loading configuration databases. tnd is started at the beginning of the boot process. tnd loads two databases into the kernel: the remote host database, tnrhdb(4) and the remote-host template database, tnrhtp(4). These databases and their effect on the trusted network are described in their respective man pages. When the associated LDAP database or local databases are changed, tnd also updates the local kernel cache at the predetermined interval. If a local trusted networking database file is modified, the administrator should run tnchkdb(1M) to check the syntax, and should also run svcadm refresh svc:/network/tnd to initiate an immediate database scan by tnd. tnd is intended to be started from an smf(5) script and to run in the global zone. The following signals cause specific svcadm actions: Options
ExamplesExample 1 Changing the Poll IntervalThe following command changes the polling interval to one hour, and puts this interval in the SMF repository. At the next boot, the tnd poll interval will be one hour.
The following command changes the polling interval, but does not update the repository. At the next boot, the tnd poll interval remains the default, 30 minutes.
AttributesSee attributes(5) for descriptions of the following attributes:
Files
See Alsosvcs(1), svcadm(1M), tninfo(1M), tnctl(1M), tnchkdb(1M), tnrhdb(4), tnrhtp(4), tnzonecfg(4), nsswitch.conf(4), attributes(5), smf(5) NotesThe tnd service is managed by the service management facility, smf(5), under the service identifier:
The service's status can be queried by using svcs(1). Administrative actions on this service, such as requests to restart the daemon, can be performed using svcadm(1M), as in:
NAME | Synopsis | Description | Options | Examples | Attributes | Files | See Also | Notes tninfo(1M)NAME | Synopsis | Description | Options | Examples | Attributes | Files | See Also NAME
Synopsis/usr/sbin/tninfo [-h hostname] [-m zone-name] [-t template] Descriptiontninfo provides an interface to retrieve and display kernel-level network information and statistics. Options
ExamplesExample 1 Displaying Remote Host Structures Cached in the KernelThis example shows the remote host structures cached in the kernel. The output reflects the definition in the tnrhdb database.
Example 2 Displaying Multilevel Ports for the Global ZoneThis example shows the kernel-cached MLPs for the global zone. The output reflects the definition in the tnzonecfg database, plus any dynamically allocated MLPs. private indicates zone-specific MLPs.
Example 3 Displaying the cipso Template DefinitionThis example shows the kernel-cached cipso template definition. The output reflects the definition in the tnrhtp database.
AttributesSee attributes(5) for descriptions of the following attributes:
Files
See AlsoSunOS 5.10 Last Revised 26 Jun 2006NAME | Synopsis | Description | Options | Examples | Attributes | Files | See Also updatehome(1M)NAME | Synopsis | Description | Options | Return Values | Examples | Attributes | Files | See Also NAME
Synopsis/usr/bin/updatehome [-cirs] Descriptionupdatehome reads the user's minimum-label copy and link-control files (.copy_files and .link_files). These files contain a list of files to be copied and symbolically linked from the user's minimum-label home directory to the user's home directory at the current label. The Solaris Trusted Extensions dtsession program performs an updatehome whenever a newly labeled workspace is created so that the user's favorite files are available for use. For example, the user probably wants a symlink to such files as .profile, .login, .cshrc, .exrc, .mailrc, and ~/bin. The updatehome command provides a convenient mechanism for accomplishing this symlink. The user can add files to those to be copied (.copy_files) and to those to be symbolically linked (.link_files). Options
Return ValuesUpon success, updatehome returns 0. Upon failure, updatehome returns 1 and writes diagnostic messages to standard error. ExamplesExample 1 A Sample .copy_files FileThe files that are listed in .copy_files can be modified at every user's label.
Example 2 A Sample .link_files FileThe files that are listed in .link_files can be modified at the lowest label. The changes propagate to the other labels that are available to the user.
Example 3 Updating the Linked and Copied FilesThe .copy_files and .link_files were updated by the user at the minimum label. At a higher label, the user refreshes the copies and the links. No privileges are required to run the command.
AttributesSee attributes(5) for descriptions of the following attributes:
Files
See AlsoSunOS 5.10 Last Revised 16 Mar 2006NAME | Synopsis | Description | Options | Return Values | Examples | Attributes | Files | See Also |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||