|
用户账号设置相关 |
AIX |
FreeBSD |
HP-UX |
| 密码文件 |
/etc/passwd /etc/security/passwd |
/etc/passwd /etc/master.passwd |
/etc/passwd /tcb/files/auth/r/root |
| 组文件 |
/etc/group /etc/security/group |
/etc/group |
/etc/group /etc/logingroup |
| 允许的最大用户ID |
4294967295 |
65535 |
2147483647 |
| 允许远程登录的用户文件设置 |
/etc/security/user {rlogin=true} |
/etc/ttys {secure} |
/etc/securetty {console} |
| 用户“nobody”的用户ID |
4294967294 |
65534 |
-2 |
| “nobody”组的ID号 |
4294967294 |
65534 |
-2(nogroup) |
| 找回ROOT密码 |
boot from CD/Tape Installation/Maintenance Start Limited Shell getrootfs hdisk0 vi /etc/security/passwd |
ok boot -s passwd root |
>boot Interact with IPL ? Y ISL>hpux -iS passwd root |
| 创建新用户 |
mkuser |
adduser |
useradd |
| 删除用户 |
rmuser |
rmuser |
userdel |
| 列出用户 |
lsuser -f ALL |
|
logins |
| 修改用户帐号 |
chuser -a |
|
usermod |