Chatee ahora con Soporte
Chat con el soporte

Privilege Manager for Unix 7.0 - Administration Guide

Introducing Privilege Manager for Unix Planning Deployment Installation and Configuration Upgrade Privilege Manager for Unix System Administration Managing Security Policy The Privilege Manager for Unix Security Policy Advanced Privilege Manager for Unix Configuration Administering Log and Keystroke Files InTrust Plug-in for Privilege Manager for Unix Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager for Unix Variables
Variable names Variable scope Global input variables Global output variables Global event log variables PM settings variables
Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures
Environment functions Hash table functions Input and output functions LDAP functions LDAP API example List functions Miscellaneous functions Password functions Remote access functions String functions User information functions Authentication Services functions
Privilege Manager for Unix programs Installation Packages

pmresolvehost

Syntax
pmresolvehost -p|-v|[-h <hostname>] [-q][-s yes|no]
Description

The pmresolvehost command verifies the host name / IP resolution for the local host or for a selected host. If you do not supply arguments, pmresolvehost checks the local host name/IP resolution.

Options

pmresolvehost has the following options.

Table 78: Options: pmresolvehost
Option Description

-h <hostname>

Verifies the selected host name.

-p

Prints the fully qualified local host name.

-q

Runs in silent mode; displays no errors.

-s

Specifies whether to allow short names.

-v

Displays the Privilege Manager for Unix version.

pmrun

Syntax

pmrun -v | -z on|off[<pid>] [-b][-d][-n][-p] [-m <masterhost>] [-h <hostname>] 
        [-u <requestuser>] command [args]

Description

The pmrun command requests that an application is run in a controlled account. Simply add pmrun to the beginning of the command line. For example:

pmrun backup /usr dev/dat

pmrun checks the /etc/opt/quest/pm.settings file to determine which the policy server daemon to send the request. Once it has contacted a policy server daemon, it sends a request to the daemon to run the application specified. As with the ssh command, you can type ~^Z to suspend pmrun, or ~. to terminate it. You must enter these commands at the beginning of a new line.

Options

pmrun has the following options.

Table 79: Options: pmrun
Option Description
-b Allows the runcommand process to run in the background, permitting you to run other programs or commands from the same window. You can use the -b switch with any application process which does not require output that changes the tty mode. Because of this restriction, you can not use the -b switch with applications that require a password.
-d The -d option is required if the application you are running uses the nohup command. Include the -d parameter to ensure that the nohup command functions correctly.

-h <hostname>

Allows you to request a particular execution host to run the request. Enter -h <host> before the command you are requesting.

-m <masterhost>

Allows you to select the policy server host to contact, bypassing the usual selection methods. The specified host must be in the masters setting in the pm.settings file.
-n Redirects the input of pmrun to /dev/null. Use the -n option to avoid unfortunate interactions between pmrun and the shell which invokes it. For example, if you are running pmrun and start a pmrun in the background without redirecting its input away from the terminal, it will block even if no reads are posted by the remote command.
-p Puts pmrun into pipe mode, in which all interactions with the user's terminal are done without changing any of the terminal parameters. Normally, pmrun puts the terminal into raw mode, so that programs such as text editors, which require raw mode, can run properly under pmrun. Pipe mode is useful when you need to pipe several pmrun commands together. For example:

pmrun -p ls /etc/secure | pmrun -p dbadd listing

-u <requestuser>

Requests to run the command as the specified user. The policy server decides whether to honor this request.
-v Displays the Privilege Manager for Unix version number and exits.

-z

Enables or disables tracing for this program and optionally for a currently running process.

Refer to Enabling program-level tracing before using this option.

Files

File containing Privilege Manager for Unix communication parameters, including the list of valid master hosts:

/etc/opt/quest/qpm4u/pm.settings 

pmscp

Description

Use pmscp in conjunction with scp to launch the remote scp -t and scp -f daemons by means of pmrun -h. This allows you to use Privilege Manager for Unix to launch the remote scp daemons.

pmscp provides an alternate encryption channel for the scp command leaving authentication requirements to your Privilege Manager for Unix policy. Either put /opt/quest/bin in your PATH or use the absolute path.

Examples

To copy files to the /tmp directory on remote host, as root run the following:

scp -S pmscp <filename> user@remotehost:/tmp

pmserviced

Syntax

pmserviced [-d] [-n] [-s] [-v] [-z on|off[:<pid>]]

Description

The Privilege Manager for Unix service daemon, (pmserviced) is a persistent process that spawns the configured Privilege Manager for Unix services on demand. The pmserviced daemon is responsible for listening on the configured ports for incoming connections for the Privilege Manager for Unix daemons. It is capable of running the pmmasterd, pmlocald, pmclientd, and pmtunneld services.

Only one of pmmasterd and pmclientd may be enabled as they use the same TCP/IP port. See the individual topics in PM settings variables for more information about these daemon settings.

Options

pmserviced has the following options.

Table 80: Options: pmserviced
Option Description
-d Logs debugging information such as connection received, signal receipt and service execution.

By default, pmserviced only logs errors.

-n Does not run in the background or create a pid file. By default, pmserviced forks and runs as a background daemon, storing its pid in /var/opt/quest/qpm4u/pmserviced.pid. When you specify the -n option, it stays in the foreground. If you also specify the -d option, error and debug messages are logged to the standard error in addition to the log file or syslog.
-s Connects to the running pmserviced and displays the status of the services, then exits.
-v Displays the version number of Privilege Manager for Unix and exits.

-z

Enables or disables tracing for pmserviced.

Refer to Enabling program-level tracing before using this option.

pmserviced Settings

pmserviced uses the following options in /etc/opt/quest/qpm4u/pm.settings to determine the daemons to run, the ports to use, and the command line options to use for each daemon.

Table 81: Options: pmserviced
Daemon Name Flag to enable daemon Listen on port Command line options
pmclientd pmclientdEnabled masterport pmclientdOpts
pmlocald pmlocaldEnabled localport pmlocaldOpts
pmmasterd pmmasterdEnabled masterport pmmasterdOpts
pmtunneldOpts

Table 82: Settings: pmserviced
Setting Description
pmservicedLog pathname | syslog Fully qualified path to the pmserviced log file or syslog.
pmmasterdEnabled YES | NO When set to YES, pmserviced runs pmmasterd on demand.
masterport number

The TCP/IP port pmmasterd or pmclientd uses to listen.

pmmasterdOpts options Any command line options passed to pmmasterd.
pmlocaldEnabled YES | NO When set to YES, pmserviced runs pmlocald on demand.
localport number The TCP/IP port pmlocald uses to listen.
pmlocaldOpts options Command line options passed to pmmasterd.
pmclientdEnabled YES | NO When set to YES, pmserviced runs pmclientd on demand.
pmclientdOpts options Any command line options passed to pmclientd.
pmtunneldEnabled YES | NO When set to YES, pmserviced runs pmtunneld on demand.
tunnelport number The TCP/IP port pmtunneld uses to listen.

pmtunneldOpts

Any command line options passed to pmtunneld.

Files
  • settings file: /etc/opt/quest/qpm4u/pm.settings
  • pid file: /var/opt/quest/qpm4u/pmserviced.pid
Related Topics

pmlocald

pmmasterd

Documentos relacionados

The document was helpful.

Seleccionar calificación

I easily found the information I needed.

Seleccionar calificación