PAM Chroot用法

/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 CSDN博客
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. 同类命令
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值