9Mj 2 d dl Z d dlmZ d dlmZ d Zd ZdS ) N)cpusers)ClPwdc ` t D ]} t | }d| }t j |dd t || Q# t j $ r t d| Y tt $ r}t d| d| Y d}~d}~ww xY wdS ) a Create /usr/share/alt-php-xray-tasks/{uid} directories for all users. The {uid} directory itself stays root-owned (0755) because it holds root-written task files the C extension reads. A {uid}/log/ subdirectory is created owned by the user (mode 0700) so the PHP worker, which runs as that uid, can write xray.to_file trace dumps there while no other local user can read or pre-create them. :return: None z/usr/share/alt-php-xray-tasks/i Texist_okzERROR: No such user zError processing user z: N) r r get_uidosmakedirs_create_user_log_dirNoSuchUserExceptionprint Exception)usernameuidbase_dires P/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/create_user_uid_dirs.pycreate_user_uid_dirsr s II <