分类: 系统运维
2007-06-08 05:15:58
|
|
|
|
密码文件 | /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 |
|
|
|
|
密码文件 | /etc/passwd /etc/shadow |
/etc/passwd /etc/shadow |
/etc/passwd |
组文件 | /etc/group | /etc/group | /etc/group |
允许的最大用户ID | 65535 | 2147483647 | 65535 |
允许远程登录的用户文件设置 | /etc/securetty {ttyp1} |
/etc/default/login {CONSOLE=/dev/console} |
/etc/securettys {ttyp1} |
用户“nobody”的用户ID | 99 | 60001 & 65534(nobody4) | 65534 |
“nobody”组的ID号 | 99 | 60002 & 65534(nogroup) | 65534 |
找回ROOT密码 | {lilo} control-x linux S passwd root {grub} c kernel vmlinuz-2.4.9-13 single ro root=/dev/hda8 initrd /initrd-2.4.9-13.img boot passwd root |
boot cdrom -s mkdir /tmp/a mount /dev/c0t0d0s0 /tmp/a vi /tmp/a/etc/shadow |
press the HALT Button or (Control-P) >>>boot -fl s lsmbstartup /sbin/bcheckrc passwd root |
创建新用户 | useradd | useradd | useradd |
删除用户 | userdel | userdel | userdel |
列出用户 | logins | ||
修改用户帐号 | usermod | usermod |