
從http://man7.org/linux/man-pages/man8/pam_limits.8.html
概要頂部
pam_limits.so [conf=/path/to/limits.conf] [debug] [set_all] [utmp_early] [noaudit]
概要是否顯示它pam_limits.so
像命令名稱一樣使用?
或者是pam_limits.so
一個模組,它可以像其他模組一樣加載和卸載嗎?
謝謝。
答案1
不,這些pam_*.so
模組是共享庫:
/lib/x86_64-linux-gnu/security# file pam_limits.so
pam_limits.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV),
dynamically linked, BuildID[sha1]=..., stripped
我的 Ubuntu 系統上的那些甚至沒有x
設定位。由於它們在技術上是 ELF 文件,因此您可以嘗試運行它們,但它實際上不起作用:
/tmp$ chmod +x pam_limits.so
/tmp$ ./pam_limits.so
Segmentation fault
它們由 PAM 庫根據/etc/pam.d/
.可以在那裡給模組提供參數,例如:
session required pam_env.so readenv=1 envfile=/etc/default/locale
手冊頁僅記錄了可以在此處使用的選項。