| Server IP : 104.21.93.65 / Your IP : 104.23.243.51 Web Server : Apache System : Linux server.localhost.com 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64 User : pahana ( 1029) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /proc/self/root/sbin/ |
Upload File : |
#!/bin/bash WEBMIN_CONFIG=/etc/webmin WEBMIN_VAR=/var/webmin PERLLIB=/usr/share/webmin:/usr/share/webmin/vendor_perl WRAPPER_ORIGINAL_PWD=`pwd` unset SCRIPT_NAME unset FOREIGN_MODULE_NAME unset SERVER_ROOT unset SCRIPT_FILENAME export WEBMIN_CONFIG WEBMIN_VAR PERLLIB SCRIPT_NAME FOREIGN_MODULE_NAME SERVER_ROOT SCRIPT_FILENAME WRAPPER_ORIGINAL_PWD cd /usr/share/webmin/virtual-server id -a | grep -i uid=0 >/dev/null if [ "$?" != 0 ]; then echo "/usr/sbin/virtualmin must be run as root" exit 2 fi if [ "$1" = "" -o "$1" = "help" -a "$2" = "" -o "$1" = "--help" -a "$2" = "" -o "$1" = "-help" -a "$2" = "" ]; then echo "usage: /usr/sbin/virtualmin <command> [args..]" echo " or: /usr/sbin/virtualmin help <command>" echo "" echo "Available commands :" echo "" COMMAND=list-commands else COMMAND=$1 COMMANDINITIAL=$COMMAND fi shift if [ "$COMMAND" = "help" ]; then help=1 COMMAND=$1 shift fi echo $COMMAND | grep '\.pl' > /dev/null if [ "$?" != "0" ]; then COMMAND="$COMMAND.pl" fi for dir in /usr/share/webmin/virtual-server /usr/share/webmin/virtual-server/pro; do if [ -x "$dir/$COMMAND" ]; then if [ "$help" = "1" ]; then exec perldoc $dir/$COMMAND else if [[ "$@" == "--help" ]]; then echo "See \`virtualmin help $COMMANDINITIAL\` for more details and examples" echo "" fi exec $dir/$COMMAND "$@" fi fi done echo Command $COMMAND was not found exit 1