PAM Chroot用法

    xiaoxiao2021-03-26  26

    /etc/pam.d/common_session /etc/pam.d/common_account pam_chroot.so use_groups

    pam_access.so accessfile=xxx

    chroot应用举例

    Chroot environment for SSH http://www.debian.org/doc/manuals/securing-debian-howto/ap-chroot-ssh-env.en.html 常用的Linux可插拔认证模块(PAM)应用举例(一) http://www.infoq.com/cn/articles/linux-pam-two andyguo 博客 http://blog.csdn.net/gzh0222/article/details/8305822 Linux PAM文件结构: 1. pam_xxx.so 2. /etc/pam.d/xxx 3. 配置PAM的时候可以开启debug模式,查看运行情况 使用chroot构建ssh沙箱系统的必要条件: Notice that if any of the following is missing the users will not be able to logon to the chroot: 1. The /proc filesystem needs to be mounted in the users' chroot. 2. The necessary /dev/pts/ devices need to exist. If the files are generated by your running kernel automatically then you have to manually create them on the chroot's /dev/. 3. The user's home directory has to exist in the chroot, otherwise the ssh daemon will not continue.

    Linux下的设备文件和物理设备是如何关联的??

    Linux命令学习方法: 1. 基本介绍 2. 基本用法及举例 3. 典型应用场景 4. 同类命令
    转载请注明原文地址: https://ju.6miu.com/read-661889.html

    最新回复(0)