PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
xray
/
console_utils
/
run_user
/
__pycache__
� N��h� � � � d Z ddlmZmZmZ ddlmZ ddlmZ ddl m Z ddlmZ ddl mZmZmZmZ dd lmZ dd lmZ dd �Zddeddfd�ZdS )zP This package contains classes and functions to run X Ray utilities as end-user � )�socket�AF_UNIX�SOCK_STREAM)�gettext)�parse_cmd_arguments)�user_agent_sock)� XRayError)�pack_request�unpack_response�check_for_root�error_response� )� get_runner)�get_locale_from_envars�returnNc �t � t � � r)t t t d� � � � � � �dS )zR Check if User Manager is executed as root and throw error in case if yes z3X-Ray End-User utilities cannot be executed as rootN)r � SystemExitr �_� � �[/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/console_utils/run_user/__init__.py�executed_as_root_checkr sH � � ��� V���1�R�S�S�T�T�V� V� V�V� Vr �manager�run_forc �t � t � � t | � � }n.# t $ r!}t t |� � � � �d}~ww xY wt |� � � � � }|� |j � � }|j |_ |j }t � � }|� d� � s|r||d<