📁
SKYSHELL MANAGER
PHP v8.2.31
Create
Create
Path:
root
/
home
/
thevaxnx
/
nativize.com
/
staging
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
wp-links-opml.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: SSH
#!/usr/local/cpanel/3rdparty/bin/perl package HostingCommon::SSH; use strict; use warnings "all"; use Whostmgr::Accounts::Shell; use parent 'Cpanel::AdminBin::Script::Call'; use Cpanel::Config::userdata::UpdateCache; use Cpanel::Services::Cpsrvd; use Cpanel::Logger; use Cpanel::PwCache::Clear; __PACKAGE__->run() if !caller; sub _actions { return qw( mng_shell ) } sub mng_shell { my ($self, $enable_shell) = @_; my $logger = Cpanel::Logger->new({ alternate_logfile => '/var/log/nc_audit/user_shell.log' }); my $user = $self->get_caller_username(); my $setup_shell = '/usr/local/cpanel/bin/noshell'; my $result = 'Shell not changed'; if ($enable_shell) { $setup_shell = '/bin/bash'; } $result = Whostmgr::Accounts::Shell::set_shell("$user", "$setup_shell"); Cpanel::Config::userdata::UpdateCache::update([$user, ]); Cpanel::PwCache::Clear::clear_global_cache(); Cpanel::Services::Cpsrvd::signal_users_cpsrvd_to_reload($user); $logger->info("$result to '$setup_shell' for user: '$user'"); return $result; } 1; #Cpanel::Shell::is_usable_shell($shell);
Save