La commande 'clogin' permet de se connecter à l'intérieur d'une WPAR en donnant simplement son nom :

# clogin Wpar1   -l user2             

La commande précédante permet de se connecter sur la WPAR Wpar1 avec l'utilisateur 'user2'.

 

 

clogin Command

Purpose

Initiates a user session or runs a command within a workload partition.

Syntax

clogin WparName [-l User] [ command [ args ] ]

Description

The clogin command provides a mechanism for the root user to log in or run a command within a workload partition.

Note: start of changeWhen you run the clogin command, some programs might not function properly, especially if executing in multibyte locales. Use the clogin command only for emergency system maintenance.end of change

When you specify the -l flag, a session is initiated as if the session was started by the user specified using the User parameter in the workload partition. If a subsequent command is specified, the command runs as if it was launched as a parameter to the login shell associated with the User. The clogin command performs similar operations as the su command, so all of the functions that are associated with the su command apply to the clogin command.

Note: The pseudo-terminal on which the session is initiated belongs to the global environment, but the login shell running in the terminal belongs to the workload partition.

Flags

ItemDescription
WparName The name of the workload partition in which to log in.
-l User Specifies the user name to log in the workload partition. Default is root. If you specify the command parameter, you must specify both the -l flag and the User parameter.
command Specifies the command running within the workload partition. The command runs as a parameter to the login shell that is associated with the user.
args Specifies optional parameters to use when the command that is specified by the command parameter runs.

Security

ItemDescription
Access Control Only the root user can run the command.

Examples

  1. To log in to a workload partition named bucko as user dan, enter the following command:
    clogin bucko -l dan
  2. To run the /usr/bin/ps command with the -T 1 option as user root in a workload partition named howdy, enter the following command:
    clogin howdy -l root /usr/bin/ps -T 1
icon phone
Téléphone/Whatsapp : +33 (0)6 83 84 85 74
icon phone