NOXSHELL
Server: LiteSpeed
System: Linux br-asc-web1432.main-hosting.eu 5.14.0-611.16.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Dec 22 03:40:39 EST 2025 x86_64
User: u728655182 (728655182)
PHP: 8.1.33
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //sbin/pam_namespace_helper
#!/usr/bin/sh

CONF=/etc/security/namespace.conf

# Match logic of process_line(), except lines with $HOME are ignored
# skip the leading white space, rip off the comments, ignore empty lines
sed -e 's/^[ 	]*//g' -e 's/#.*//g' -e '/.*\$HOME.*/d'  -e '/^$/d' < $CONF | \
    while read polydir instance_prefix method uids; do
	if [ ! -e "$instance_prefix" ]; then
	    echo "mkdir $instance_prefix"
	    mkdir --parents --mode=0 -Z "$instance_prefix"
	fi
    done

exit 0