SUDO Command

HSI Version: 

3.4.1 and later

Purpose: 

 Issue an HSI command using another user's identity

Aliases: 

 

Command Format: 

sudo [K | -k | -l] [-v]
     or
sudo [-s] [-u user|#uid] [--] command

Options: 

-K: "sure kill" option - invalidate the current sudo session and remove the starting timestamp

-k: invalidate the current sudo session, but do not remove the starting timestamp

-l : (deferred implementation) list allowed and forbidden commands for the current active sudo session

-s : SU to the target user and then run the command.  Stays in "SU" mode after the command completes

-u : target user login name or numeric uid (# prefix is required, with no intervening whitespace)

-v : validate and extend the current SUDO session's timestamp

command: HSI command to be executed.

Keywords: 

 

Usage Notes: 

The current login identity must be authorized by the HPSS administrator in order to use this command.  For SUDO, the administrator may further restrict the list of commands that users are allowed to execute.


The command string is currently limited to a single HSI command; semicolon characters in the string are treated as part of the command rather than as command separators. 

Example: 

1. Issue a single command as user "joe"
   sudo -u joe ls -lR 
2. Kill the current sudo session, but do not invalidate the 
timestamp for this session
  sudo -k
3. SU to user 53781 and then issue a command
  sudo -s -u #53781 get localFile : projectFile

Related Command(s):

SUDO