1
7 ˆ
ƒ¢k_•I|¥‰ÓMdœv ©ƒ&íK<óo¬a–ß=¿JJj"Tâ‚fàš¸Å£Á ¼
Index of /FSS-BCZ/root/sys/devices/system/memory/memory49/node0/memory47/subsystem
Index of /FSS-BCZ/root/sys/devices/system/memory/memory49/node0/memory47/subsystem
# ˆl–Ðz¾”Jj"TÒ�zàœ¸”Å£Å
ƒm֙Ŀ o #!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - scripts/realadduser Copyright 2022 cPanel, L.L.C.
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
BEGIN {
$ENV{'LANG'} = 'C';
}
use strict;
use Fcntl ();
use Cpanel::Finally ();
use AcctLock ();
use Cpanel::Logger ();
use Cpanel::LoginDefs ();
use Cpanel::PwCache ();
use Cpanel::SysAccounts ();
use Whostmgr::Accounts::IdTrack ();
my $logger = Cpanel::Logger->new();
my $mailgid = ( Cpanel::PwCache::getpwnam('mail') )[3];
my $nochecks = 0;
my $shell = 0;
my $debug = 0;
my $is_system_account = 0;
if (@ARGV) {
while ( my $arg = shift @ARGV ) {
last if !$arg;
if ( $arg =~ m/^-+(\S+)/ ) {
my $flag = $1;
if ( $flag eq 'nochecks' ) {
$nochecks = 1;
}
elsif ( $flag =~ m/^(no)?shell$/ ) {
if ($1) {
$shell = 'noshell';
}
else {
$shell = shift @ARGV;
}
}
elsif ( $flag =~ m/debug/i ) {
$debug = 1;
}
elsif ( $flag eq 'r' || $flag eq 'system' ) {
$is_system_account = 1;
}
}
else {
unshift @ARGV, $arg;
last;
}
}
}
my $username = $ARGV[0];
my $homeroot = $ARGV[1];
my $pass = $ARGV[2];
my $myuid = $ARGV[3];
my $mygid = $ARGV[4];
if ( !$ARGV[0] ) {
my $up;
chomp( $up = );
my @UP = split( / /, $up );
$username = $UP[0];
$homeroot = $UP[1];
$pass = $UP[2];
}
if ( !$username ) {
Cpanel::Logger::logger(
{
'message' => "Syntax: adduser ",
'level' => 'die',
'service' => 'realadduser',
'output' => 2,
'backtrace' => 0,
}
);
}
if ( !$home