golden hour
/opt/cloudlinux/venv/bin
⬆️ Go Up
Upload
File/Folder
Size
Actions
Activate.ps1
8.82 KB
Del
OK
activate
1.65 KB
Del
OK
activate.csh
915 B
Del
OK
activate.fish
2.14 KB
Del
OK
alembic
202 B
Del
OK
cagefs_enter_site.py
1.83 KB
Del
OK
cagefsctl_user.py
14.41 KB
Del
OK
chardetect
210 B
Del
OK
cl_sysctl
4.51 KB
Del
OK
clcpapi
3.64 KB
Del
OK
coverage
204 B
Del
OK
coverage-3.11
204 B
Del
OK
coverage3
204 B
Del
OK
cpanel-dbmapping
3.83 KB
Del
OK
crontab-user-wrapper.py
2.46 KB
Del
OK
da_suid_caller.py
686 B
Del
OK
detect-requirements
211 B
Del
OK
dodgy
197 B
Del
OK
epylint
208 B
Del
OK
f2py
205 B
Del
OK
f2py3
205 B
Del
OK
f2py3.11
205 B
Del
OK
flake8
203 B
Del
OK
futurize
204 B
Del
OK
get_gprof
1.84 KB
Del
OK
get_objgraph
1.63 KB
Del
OK
isort
198 B
Del
OK
isort-identify-imports
232 B
Del
OK
jsonschema
202 B
Del
OK
lvestats_config_reader.py
1.12 KB
Del
OK
mako-render
202 B
Del
OK
normalizer
233 B
Del
OK
pasteurize
206 B
Del
OK
pip
237 B
Del
OK
pip3
237 B
Del
OK
pip3.11
237 B
Del
OK
plesk_suid_caller.py
905 B
Del
OK
prospector
202 B
Del
OK
py.test
210 B
Del
OK
pycodestyle
201 B
Del
OK
pydocstyle
202 B
Del
OK
pyflakes
200 B
Del
OK
pylint
206 B
Del
OK
pylint-config
222 B
Del
OK
pyreverse
212 B
Del
OK
pysemver
198 B
Del
OK
pytest
210 B
Del
OK
python
6.98 KB
Del
OK
python3
6.98 KB
Del
OK
python3.11
6.98 KB
Del
OK
raven
208 B
Del
OK
symilar
208 B
Del
OK
tap
196 B
Del
OK
tappy
196 B
Del
OK
undill
603 B
Del
OK
virtualenv
227 B
Del
OK
Edit: cagefs_enter_site.py
#!/opt/cloudlinux/venv/bin/python3 -sbb # -*- coding: utf-8 -*- # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2025 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # https://cloudlinux.com/docs/LICENCE.TXT # """ Execute a command inside CageFS for a site (document root or domain). This wrapper provides a command-line interface for executing commands within the isolated CageFS environment for a specific website. """ import argparse import os import sys from clcagefslib.webisolation import libenter def create_parser(): """ Create argument parser for cagefs_enter_site. Returns: argparse.ArgumentParser: Configured argument parser """ parser = argparse.ArgumentParser( # the command is named with _underscores_ to match # existing cagefs_enter wrapper from lvewrappers prog="cagefs_enter_site", description="Execute a command inside CageFS for a site (document root or domain)", ) parser.add_argument("site", type=str, help="Document root or domain") parser.add_argument( "command", type=str, nargs=argparse.REMAINDER, help="Command to execute" ) return parser def main(): """ Main entry point. Returns: int: Exit code """ parser = create_parser() args = parser.parse_args() if not args.command: parser.error("COMMAND is required") try: return libenter.enter_site(args.site, args.command) except ValueError as e: print(f"Error: {e}", file=sys.stderr) return 1 except KeyboardInterrupt: # Clean Ctrl+C exit without traceback (exit code 130 = SIGINT). return 130 if __name__ == "__main__": if os.geteuid() == 0: print("Error: This program can not be run as root", file=sys.stderr) sys.exit(1) sys.exit(main())
Save