SSH Reference Manual
In this example, the script /home/xyz/myPATH contains: 
export PATH=$PATH:/usr/bin 
The third step is to create an executable shell script /usr/bin/test-script, for example: 
echo Entering $0 
echo Parameters=\>$*\< 
echo ---------------------------------------- 
echo \$SSH_ORIGINAL_COMMAND: 
echo $SSH_ORIGINAL_COMMAND 
echo ---------------------------------------- 
echo Leaving $0 
Now the actual test is executed by starting an ssh client: 
C:\WINDOWS>ssh -oPort=15022 xyz@10.0.0.194 test-script '/home/xyz/repo1/'  
xyz@10.0.0.194's password: ... 
Entering test-script 
Parameters=>/home/xyz/repo1/< 
 ---------------------------------------- 
 $SSH_ORIGINAL_COMMAND: 
 test-script /home/xyz/repo1/ 
 ---------------------------------------- 
Leaving test-script 
SYSTEM-USER 
This attribute defines the Guardian user name to which the <user-name> is mapped. 
If this attribute is omitted, it is assumed that <user-name> is a valid user on the system. 
If *NONE* is specified, the user is not mapped to a system user, causing all channel requests that require a valid system 
user (e.g. exec, subsystem SFTP) to be rejected. SYSTEM-USER *NONE* is useful to grant anonymous access to 
services which perform their own authentication (e.g. Pathway applications). When SYSTEM-USER *NONE* is used 
and CI-PROGRAM or SHELL-PROGRAM are *MENU* and TACL or OSH can be selected from the STN menu, then 
a logon for TACL or OSS is required. 
It is possible to specify the logon id (e.g. 11,23) in double quotes. The logon id will be converted to <group>.<user> 
before the value for SYSTEM-USER is set. 
ALTER USER 
The ALTER USER command changes one or more attributes of an existing user and has the following syntax: 
ALTER USER <user-name> 
  [,ALLOW-CI yes|no ] 
 [,ALLOW-CI-PROGRAM-OVERRIDE yes|no ] 
  [,ALLOW-GATEWAY-PORTS yes|no ]  
  [,ALLOW-MULTIPLE-REMOTE-HOSTS yes|no ]  
  [,ALLOW-PTY yes|no ]  
  [,ALLOW-SHELL yes|no ]  
  [,ALLOW-TCP-FORWARDING yes|no ]  
  [,ALLOWED-AUTHENTICATIONS ( <method>, <method>, ... ) | <method> ]  
  [,ALLOWED-SUBSYSTEMS ( <subsystem>, <subsystem>, ... ) | <subsystem> ]  
  [,CI-COMMAND [ <command> ] ]  
  [,CI-PROGRAM [ <filename> | *MENU* | *MENU* <service> [ FORCE] ] ]  
  [,COMMENT <comment> | "<comment containing spaces>" ]  
  [,CPU-SET [<cpu> | <cpu-range> | ( <cpu-range-list> ) ] ]  
  [,DELETE PRINCIPAL { <user>@<REALM> | *@<REALM> | *@* | * } ] ...  
  [,DELETE PUBLICKEY { <key-name> | * }] ...  
  [,OWNER < system-user-name> | *NONE*] 
 [,PRINCIPAL { <user>@<REALM> | *@<REALM> | *@* } ] ... 
 [,PRIORITY -1 | <priority> ] 
 [,PTY-SERVER { *DEFAULT* | <process-name> } ] 
 [,PUBLICKEY <key-name> FINGERPRINT <fingerprint-value> | 
 FILE <filename> | 
HP NonStop SSH Reference Manual  SSHCOM Command Reference • 175 










