✏️ 编辑:pam_namespace_helper
路径:
/usr/sbin/pam_namespace_helper
大小:471 B · 修改:2026-09-08 12:42:58 · 权限:0755 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
#!/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
💾 保存
取消
保存为 UTF-8,换行统一为 LF