⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.72
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
psa
/
admin
/
sbin
/
modules
/
letsencrypt
/
View File Name :
chown-config-dirs.sh
#!/bin/bash -e declare -r WORK_DIR="${1?Directory is not set}" declare -r OWNER="${2?Owner is not set}" echo "$OWNER" echo "$WORK_DIR" function chownDirs() { local dir="${1?Directory is not set}" local owner="${2?Owner is not set}" [ -d "${dir}" ] && find "${dir}" -maxdepth 1 -type d -print0 | xargs -0 chown "${owner}" } if [ -d "${WORK_DIR}/etc" ] ; then chown "${OWNER}" "${WORK_DIR}/etc" chownDirs "${WORK_DIR}/etc/archive" "${OWNER}" chownDirs "${WORK_DIR}/etc/live" "${OWNER}" fi if [ -d "${WORK_DIR}/root/etc" ] ; then chown "${OWNER}" "${WORK_DIR}/root" chown "${OWNER}" "${WORK_DIR}/root/etc" chownDirs "${WORK_DIR}/root/etc/archive" "${OWNER}" chownDirs "${WORK_DIR}/root/etc/live" "${OWNER}" fi