Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //bin/plesk_configure
#!/bin/bash

CONVERT="$1"

if [ ! -e "/usr/local/psa/version" ]; then
    exit 0
fi

PATH_TO_FIX="/var/www/vhosts/.skel/0"
PLESK_VER=$(cat /usr/local/psa/version | awk '{print $1}' | awk -F '.' '{print $1}')

if [ ! -e "/proc/sys/fs/protected_symlinks_allow_gid" -a -z "$CONVERT" ]; then
    exit 0
fi

if [ -e "$PATH_TO_FIX" ]; then
    chgrp linksafe "$PATH_TO_FIX"
fi

if [ ${PLESK_VER} -ge 17 ]; then
    usermod -a -G linksafe psaadm
fi

exit 0

ZeroDay Forums Mini