/opt/cloudlinux/venv/bin
NameSizeModeActions
activate16890644editdlrm
activate.csh9130644editdlrm
activate.fish21930644editdlrm
Activate.ps190330644editdlrm
alembic2290755editdlrm
chardetect2370755editdlrm
clcpapi38390755editdlrm
cl_sysctl47290755editdlrm
coverage2310755editdlrm
coverage-3.112310755editdlrm
coverage32310755editdlrm
cpanel-dbmapping39250755editdlrm
cygdb2360755editdlrm
cython2570755editdlrm
cythonize2370755editdlrm
da_suid_caller.py7640644editdlrm
detect-requirements2380755editdlrm
dodgy2240755editdlrm
epylint2350755editdlrm
f2py2320755editdlrm
f2py32320755editdlrm
f2py3.112320755editdlrm
flake82300755editdlrm
futurize2310755editdlrm
get_objgraph16670755editdlrm
isort2250755editdlrm
isort-identify-imports2590755editdlrm
jsonschema2290755editdlrm
lvestats_config_reader.py12230644editdlrm
mako-render2290755editdlrm
normalizer2600755editdlrm
pasteurize2330755editdlrm
pip2370755editdlrm
pip32370755editdlrm
pip3.112370755editdlrm
plesk_suid_caller.py9830644editdlrm
prospector2290755editdlrm
py.test2370755editdlrm
pycodestyle2280755editdlrm
pydocstyle2290755editdlrm
pyflakes2270755editdlrm
pylint2330755editdlrm
pylint-config2490755editdlrm
pyreverse2390755editdlrm
pysemver2250755editdlrm
pytest2370755editdlrm
python61440755editdlrm
python361440755editdlrm
python3.1161440755editdlrm
raven2350755editdlrm
symilar2350755editdlrm
tap2230755editdlrm
tappy2230755editdlrm
undill6030755editdlrm
virtualenv2540755editdlrm
wheel2240755editdlrm
Edit: /opt/cloudlinux/venv/bin/cpanel-dbmapping (3925B)
#!/bin/bash # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2018 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT eval 'if [ -x /usr/local/cpanel/3rdparty/bin/perl ]; then exec /usr/local/cpanel/3rdparty/bin/perl -x -- $0 ${1+"$@"}; else exec /usr/bin/perl -x $0 ${1+"$@"}; fi;' if 0; #!/usr/bin/perl #BEGIN { unshift @INC, '/scripts'; } BEGIN { unshift @INC, '/usr/local/cpanel', '/scripts'; } my $pckg_name = 'Cpanel'; use strict; use warnings; eval "use " .$pckg_name . "::Config::Users ();"; if ($@){ $pckg_name = 'cPScript'; eval "use " .$pckg_name . "::Config::Users ();"; } #eval "use " .$pckg_name . "::Config::Users ();"; eval "use " .$pckg_name . "::DB::Map ();"; eval "use " .$pckg_name . "::DB ();"; use Data::Dumper; my @old = (); my @new = (); my @copy_new = (); my $noSystemUsers = ($#ARGV >= 0 && $ARGV[0] eq "--nosys"); if ($noSystemUsers) { shift @ARGV; } my $numArgs = $#ARGV + 1; if($numArgs>0){ foreach my $mb (@ARGV) { if($mb>0){ my $uname_1 = getpwuid($mb); @new = get_map_list_user_($uname_1); foreach my $item (@new){ my $fnd = 0; foreach my $item2 (@old){ if (($$item[0] eq $$item2[0]) && ($$item[1] eq $$item2[1])){ $fnd = 1; last; } } if($fnd==0){ push @old, $item; } } } } foreach my $item (@old){ print $$item[0], " ", $$item[1], " ", $$item[2], "\n"; } } else { @new = get_map_list_(); @copy_new = map { [@$_] } @new; my @del_list = (); my @del_list2 = (); my $i=0; my $j=0; foreach my $item (@new){ $j=0; my $del = 0; foreach my $item2 (@old){ if (($$item[0] eq $$item2[0]) && ($$item[1] eq $$item2[1])){ push @del_list, $j; $del = 1; } $j++; } if($del==1){ push @del_list2, $i; } $i++; } foreach my $item (@del_list){ delete $old[$item]; } foreach my $item (@del_list2){ delete $new[$item]; } @old = grep {$_} @old; @new = grep {$_} @new; my $cnt_old = @old; my $cnt_new = @new; if($cnt_old>0 || $cnt_new>0){ foreach my $item (@copy_new){ print $$item[0], " ", $$item[1], " ", $$item[2], "\n"; } } } sub get_map_list_ { my @arr = (); my @users =Cpanel::Config::Users::getcpusers(); foreach my $user (@users) { my $user_map1 = Cpanel::DB::get_map ( {'cpuser' => $user} ); my $name=""; my $uid= -1; my $dummy; ($name, $dummy, $uid, $dummy, $dummy, $dummy, $dummy, $dummy, $dummy) = getpwnam($user); if ($uid>=0 && !$noSystemUsers){ push @arr, [ $user, $user, "$uid" ]; } if ($uid>=0 && exists($$user_map1{'stash'}{'MYSQL'}{'dbusers'})){ for my $key (keys %{$$user_map1{'stash'}{'MYSQL'}{'dbusers'}}) { push @arr, [ $key, $user, "$uid" ]; } } } return @arr; } sub get_map_list_user_ { my @arr = (); my $user = shift; my $user_map1 = Cpanel::DB::get_map ( {'cpuser' => $user} ); my $name = ""; my $uid = -1; my $dummy; ($name, $dummy, $uid, $dummy, $dummy, $dummy, $dummy, $dummy, $dummy) = getpwnam($user); if ($uid>=0 && !$noSystemUsers){ push @arr, [ $user, $user, "$uid" ]; } if ($uid>=0 && exists($$user_map1{'stash'}{'MYSQL'}{'dbusers'})){ for my $key (keys %{$$user_map1{'stash'}{'MYSQL'}{'dbusers'}}) { push @arr, [ $key, $user, "$uid" ]; } } return @arr; }