User Tools

Site Tools


z:relax:api:base:base-exec-superuser
Please note, that this is an old archived version of this site. Check out the new version at andunix.net!

base-exec-superuser

Executes a command as a given user. Command is executed using ssh if the user is not on localhost. Before executing the command, the privileges will be elevated. This privilege elevation method is defined by $RIGHT_ELEVATION in the service configuration and can be either pfexec, su or sudo.

Usage

base-exec-superuser USER COMMAND
  • USER: A key of an user definition in the repository. From this, the following properties are used:
  • COMMAND: A command to be executed. It is executed either locally or remote using base-ssh-login.

Returns

Returns the output of the command.

z/relax/api/base/base-exec-superuser.txt · Last modified: 2013-02-04 22:17 (external edit)