HEX
Server: Apache
System: Linux host.creative4all.com 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User: agrimasfadeltral (1173)
PHP: 8.3.30
Disabled: exec,passthru,shell_exec,system,proc_open,parse_ini_file,show_source
Upload Files
File: //scripts/postkillacct
#!/bin/bash
# Bash script to be executed after an account termination
# Vanessa V. 4/13/2011

# Argument structure
# /scripts/postkillacct killdns <1|0> user <user>

DIR="/opt/backup/"

# Assign fourth argument as user
USER=$4

if [ "$USER" != " " ]; then
    if [ -d $DIR ]; then
    # Create maint structure, if doesn't already exist
        if [ ! -d $DIR/del ];then
            mkdir -p $DIR/del
        fi

    # Copy the username into the directory
        echo "terminated" > $DIR/del/$USER
    fi
fi