|
用戶賬號設置相關 |
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 |