免费注册 查看新帖 |

Chinaunix

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

after /etc/passwd was overrideed................. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-02-18 18:17 |只看该作者 |倒序浏览
I have overrideed my /etc/passwd file , then I get  new passwd and shadow files from my workmate ,and put them into /etc directory .System seems to work well .
Pre information :
db2inst is a common username exit in my company's machines which used to manage DB2 instance as a administrator just like db2admin on windows .

When I su to  db2inst from # , a error msg is :" id: cannot find name for group ID 102" and I could not start DB now .I think GID 102 is for my previous db2inst user , should I delete the user and recreated it ?Also include recreated the DB instance .I hope it does not need to reinstall my DB2 :)

My question is : Why did it happened ? Because I have get new passwd and shadow files .Can someone teach me the detail context ?

Thanks a lot.

论坛徽章:
0
2 [报告]
发表于 2004-02-18 18:53 |只看该作者

after /etc/passwd was overrideed.................

我觉得你应该删掉以前的用户然后重建一个。不管怎样也没有必要覆盖passwd文件。

论坛徽章:
0
3 [报告]
发表于 2004-02-19 09:05 |只看该作者

after /etc/passwd was overrideed.................

如果你一定要用你的同事的帐号信息,记得要把/etc/group文件也拷过来,否者只拷贝/etc/passwd和/etc/shadow文件会出现与group不一致得情况,比如他的机器上建的组而你的机器上没有,或者他的机器上建的组ID与你的机器上建的不同的组(组名不同)ID相同,也会有问题。

论坛徽章:
0
4 [报告]
发表于 2004-02-19 09:12 |只看该作者

after /etc/passwd was overrideed.................

sakulagi ,bird123:
   Thanks your help , now I know /etc/group file is also important
I will attempt to try it.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP