加入收藏 | 设为首页 | 会员中心 | 我要投稿 安卓应用网_ASP源码网 (https://www.1asp.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 建站 > 正文

如何构建一台网络引导服务器(二)

发布时间:2019-01-22 00:50:32 所属栏目:建站 来源:Gregory Bartholomew
导读:副标题#e# 在 如何构建一台网络引导服务器(一) 的文章中,我们展示了如何创建一个网络引导镜像,在那个镜像中使用了一个名为 liveuser 帐户,它的家目录位于内存中,重启后家目录中的内容将全部消失。然而很多用户都希望机器重启后保存他们的文件和设置。

重新配置 PAM 去使用 pam_mount

  1. # dnf install -y patch
  2. # cp -r /fc28/usr/share/authselect/default/sssd /fc28/etc/authselect/custom
  3. # echo 'initgroups: files' >> /fc28/etc/authselect/custom/sssd/nsswitch.conf
  4. # patch /fc28/etc/authselect/custom/sssd/system-auth << END
  5. @@ -12 +12,2 @@
  6. -auth sufficient pam_sss.so forward_pass
  7. +auth requisite pam_mount.so {include if "with-pammount"}
  8. +auth sufficient pam_sss.so {if "with-pammount":use_first_pass|forward_pass}
  9. @@ -35,2 +36,3 @@
  10. session required pam_unix.so
  11. +session optional pam_mount.so {include if "with-pammount"}
  12. session optional pam_sss.so
  13. END
  14. # patch /fc28/etc/authselect/custom/sssd/password-auth << END
  15. @@ -9 +9,2 @@
  16. -auth sufficient pam_sss.so forward_pass
  17. +auth requisite pam_mount.so {include if "with-pammount"}
  18. +auth sufficient pam_sss.so {if "with-pammount":use_first_pass|forward_pass}
  19. @@ -32,2 +33,3 @@
  20. session required pam_unix.so
  21. +session optional pam_mount.so {include if "with-pammount"}
  22. session optional pam_sss.so
  23. END
  24. # chroot /fc28 authselect select custom/sssd with-pammount --force

(编辑:安卓应用网_ASP源码网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

推荐文章
    热点阅读