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

Returns

Returns the output of the command.