免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1740 | 回复: 6
打印 上一主题 下一主题

linux下双授权认证的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-02-09 12:27 |只看该作者 |倒序浏览
hello everyone!

For some important business system, you should use dual-authorize authentication in these system. the mean is if you need use the system root account, you can't login system by your single password, there need another person's password  combine your password login the important system. It is not separate root's password into two parts, 1st part you have, 2st part I have. I mean that we should login two user account before use root account.
In IBM AIX system:
For example:
1st you should creat two person's account in AIX system, john  & cici
2st compile /etc/security/user   in "root" segment, find "auth1" and modify it :
     auth1 = SYSTEM;root,SYSTEM;john,SYSTEM;cici
save and exit

test it.

login:root
root's Password: (input the root's password)
john's Password: (john input himself password)
cici's Password: (cici input herself password)

all of the three passwords must input correct, then you can login the system.

now I want to ask a question that if I want to implement dual-authorize authentication in linux system ,what should I do ? thanks everyone!

论坛徽章:
0
2 [报告]
发表于 2007-02-14 11:31 |只看该作者
There is nobody answer this question??

论坛徽章:
0
3 [报告]
发表于 2007-02-15 15:32 |只看该作者
I don't think it can be done by changing the configuration file of 'login' program in Linux,
probably you have to hack the source code of login and rewrite it.

论坛徽章:
0
4 [报告]
发表于 2007-02-16 09:17 |只看该作者
thanks upstairs, I think it too.

论坛徽章:
0
5 [报告]
发表于 2007-02-16 14:44 |只看该作者
原帖由 linuxexpert 于 2007-2-15 15:32 发表于 3楼  
I don't think it can be done by changing the configuration file of 'login' program in Linux,
probably you have to hack the source code of login and rewrite it.


应该不需要改 login program 的 source code,但是有机会需要改的是 pam 配置,而且自己写个 pam module 提供该功能。

--

论坛徽章:
0
6 [报告]
发表于 2007-02-16 15:10 |只看该作者
adding script into the /etc/passwd login script, and the script should look like

  1. su <user1>
  2. su <user2>
  3. su root
复制代码

论坛徽章:
0
7 [报告]
发表于 2007-02-25 15:50 |只看该作者
upstairs, good idea! I will try it. thanks
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP