LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 581|回复: 4

紧急求助:不小心把 /etc/security/namespace.conf删除了

[复制链接]
发表于 2009-3-3 19:05:46 | 显示全部楼层 |阅读模式
那位好心能把自己系统里的这个文件贴出来吗?
 楼主| 发表于 2009-3-3 19:11:14 | 显示全部楼层
大家帮帮忙吧!
我可不想再重装系统了
回复 支持 反对

使用道具 举报

发表于 2009-3-3 19:17:56 | 显示全部楼层
touch 一个,默认为空文件


  1. # /etc/security/namespace.conf
  2. #
  3. # See /usr/share/doc/pam-*/txts/README.pam_namespace for more information.
  4. #
  5. # Uncommenting the following three lines will polyinstantiate
  6. # /tmp, /var/tmp and user's home directories. /tmp and /var/tmp will
  7. # be polyinstantiated based on the MLS level part of the security context as well as user
  8. # name, Polyinstantion will not be performed for user root and adm for directories
  9. # /tmp and /var/tmp, whereas home directories will be polyinstantiated for all users.
  10. # The user name and context is appended to the instance prefix.
  11. #
  12. # Note that instance directories do not have to reside inside the
  13. # polyinstantiated directory. In the examples below, instances of /tmp
  14. # will be created in /tmp-inst directory, where as instances of /var/tmp
  15. # and users home directories will reside within the directories that
  16. # are being polyinstantiated.
  17. #
  18. # Instance parent directories must exist for the polyinstantiation
  19. # mechanism to work. By default, they should be created with the mode
  20. # of 000. pam_namespace module will enforce this mode unless it
  21. # is explicitly called with an argument to ignore the mode of the
  22. # instance parent. System administrators should use this argument with
  23. # caution, as it will reduce security and isolation achieved by
  24. # polyinstantiation.
  25. #
  26. #/tmp     /tmp-inst/            level      root,adm
  27. #/var/tmp /var/tmp/tmp-inst/    level      root,adm
  28. #$HOME    $HOME/$USER.inst/     level
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-3-3 19:19:37 | 显示全部楼层
谢谢
这个文件没有实际内容吗?
回复 支持 反对

使用道具 举报

发表于 2009-3-3 19:33:15 | 显示全部楼层
无实际内容.我都好少用到这个文件.( 太安全是很麻烦的 )
非服务器,很少人会限制用户可以进入的路径吧( 个人理解这个文件的用途 ).
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表