def run_as_cmd(cmd, user, shell='<STR_LIT>'):
to_execute = get_shell(shell) + [EXECUTE_SHELL_PARAM, cmd]<EOL>if user == '<STR_LIT:root>':<EOL><INDENT>return to_execute<EOL><DEDENT>return ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', user] + to_execute<EOL>
Get the arguments to execute a command as a user

    :param str cmd: command to execute
    :param user: User for use
    :param shell: Bash, zsh, etc.
    :return: arguments
    :rtype: list