Server IP : 184.154.167.98 / Your IP : 18.222.179.96 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /bin/ |
Upload File : |
#!/bin/bash SOLO_MARKER="/etc/cloudlinux-edition-solo" CONTAINER_MARKER="/etc/cloudlinux-container" if [[ -f $SOLO_MARKER || -f $CONTAINER_MARKER ]]; then /usr/sbin/cagefsctl --delete-namespace $1 > /dev/null 2>&1 fi user_uid=`/usr/bin/id -u $1 2> /dev/null` # Count all entries for found id in /etc/passwd uid_count=$(/usr/bin/getent passwd | awk -F: '{printf "%s:%s\n",$1,$3}' | grep -w "${user_uid}" | wc -l) if [[ "${uid_count}" -eq 1 ]]; then if [ -e /usr/sbin/cagefsctl ]; then /usr/sbin/cagefsctl --set-default-user-status $1 > /dev/null 2>&1 /usr/sbin/cagefsctl --unmount $1 > /dev/null 2>&1 fi if [ -e /usr/sbin/lvectl ]; then if [ -n "${user_uid}" ]; then /usr/sbin/lvectl delete "${user_uid}" > /dev/null 2>&1 /usr/sbin/lvectl destroy "${user_uid}" > /dev/null 2>&1 fi fi fi if [ -e /etc/cagefs/userdel.old ]; then cmd=`cat /etc/cagefs/userdel.old` /bin/bash -c "$cmd" fi