免费注册 查看新帖 |

Chinaunix

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

[新手入门] 如何把用户信息从一个系统移到另一个系统上去 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-04-09 20:41 |只看该作者 |倒序浏览
如何把AIX上的所有相关用户信息从一个系统移到另一个系统上去。
谢谢!

论坛徽章:
0
2 [报告]
发表于 2003-04-10 00:02 |只看该作者

如何把用户信息从一个系统移到另一个系统上去

顶!!我也想知道!

论坛徽章:
0
3 [报告]
发表于 2003-04-10 20:58 |只看该作者

如何把用户信息从一个系统移到另一个系统上去

光拷贝/etc/passwd和/etc/security/passwd可以吗?

再问一次?

thanks a million.

论坛徽章:
0
4 [报告]
发表于 2003-04-10 21:12 |只看该作者

如何把用户信息从一个系统移到另一个系统上去

Migrating Users from AIX 3.2 to 4.1, 4.2 and 4.3

解答:

Files that can be copied over

/etc/security/group
/etc/security/limits - AIX Versions 4.2 and 4.3 manually merge this file
/etc/security/passwd
/etc/security/.ids
/etc/security/environ
/etc/security/.profile
/etc/group
/etc/passwd

NOTE: Edit the passwd file so the root entry is as follows:

root0:0::/:/usr/bin/ksh

NOTE: In AIX Version 3.2, the initial program was /bin/ksh. You could install the bos.compat.links fileset.

When you copy the /etc/passwd and /etc/group files, make sure they contain at least a minimum set of essential user and group definitions.

Listed specifically as users are the following:

root
daemon
bin
sys
adm
uucp
guest
nobody
lpd

Listed specifically as groups are the following:

system
staff
bin
sys
adm
uucp
mail
security
cron
printq
audit
ecs
nobody
usr

These users and groups are documented in Appendix D of the AIX Version 4.3 Installation Guide.

If the bos.compat.links fileset is installed, you can copy the /etc/security/mkuser.defaults file over. If it is not installed, the file belongs in the
/usr/lib/security directory. The /etc/security entry is a symbolic link to /usr/lib/security.

If you copy over mkuser.defaults, changes must be made to the stanzas. Replace group with pgrp, and program with shell. A proper stanza should look like the
following:

user:
pgrp = staff
groups = staff
shell = /usr/bin/ksh
home = /home/$USER

The following files are different at AIX Version 4.x and CANNOT be copied over:

/etc/security/login.cfg
/etc/security/user

NOTE: Manually edit these files on the AIX Version 4.x system.

In the new /etc/security/user file, you may want to copy the individual user stanzas from the 3.2.5 user file and modify the default stanza to have the same
values. Edit the default stanza to contain the pw_restrictions entries formerly found in login.cfg (3.2.5).

In AIX 3.2 the password restrictions are applied universally. In AIX 4.x they can be applied individually. You may want to reevaluate which stanzas to
modify. This is optional. You can also decide whether or not to implement any of the new features presented in the user file.

Once the files are moved over, execute the following:

usrck -t ALL
pwdck -t ALL
grpck -t ALL

This will clear up any discrepancies (such as uucp not having an entry in /etc/security/passwd). Ideally this should be run on the 3.2.5 system before
copying over the files as well as after porting these files to 4.x.

Migrating from AIX version 4.1 to 4.2 and 4.3

All of the files described in the preceding discussion can be copied directly, except the /etc/security/limits file. This now includes both soft and hard limits,
so the file must be manually merged.

So do the migration from 4.3.3 to 5.1 . I tested it, it works .

论坛徽章:
0
5 [报告]
发表于 2003-04-10 21:29 |只看该作者

如何把用户信息从一个系统移到另一个系统上去

请问哪本书上有该专题的介绍
谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP