´æ´¢ÈëÃÅ»ù´¡£ºHP-UX°²È«¼Ó¹ÌʹÓÃÊÖ²á
# uname ?Ca £¨°æ±¾ÐÅÏ¢£©
# bdf £¨Âß¼¾í״̬£©
# ps ?Cef £¨½ø³Ì״̬£©
# netstat -anf inet £¨¶Ë¿Ú״̬£©
5¡¢ °²×°¸÷ÖÖÇý¶¯µÈ
6¡¢ °²×°×îеIJ¹¶¡¡£
http://us.itrc.hp.com
°²×°²¹¶¡Ê±Òª×¢ÒâHPµÄ²¹¶¡ÓëÓ²¼þÀàÐͺÍϵͳ°æ±¾¶¼Ïà¹Ø£¬¼ì²é²¢°²×°ËùÓÐÐèÒªµÄ²¹¶¡¡£È·ÈÏÐèÒªswlist -l fileset.
Èý¡¢ÏµÍ³»ù±¾ÅäÖÃ
²Ù×÷ϵͳ°²×°²¢´òÉϲ¹¶¡ºó£¬ÐèÒª×öһЩ´ëÊ©À´¶Ôϵͳ½øÐÐһЩÅäÖá£
ɾ³ý±£´æµÄ²¹¶¡£¨¿ÉÑ¡£©
ȱʡÇé¿öÏ£¬²¹¶¡°²×°Íê»áÔÚ/var/adm/sw/save/ϱ¸·ÝËùÓеIJ¹¶¡¡£¿ÉÒÔÑ¡Ôñɾ³ýÕâЩ²¹¶¡Îļþ£¬µ«Ò»µ©É¾³ý¾Íû·¨Ê¹ÓÃswremoveжÔز¹¶¡ÁË¡£
# swmodify -x patch_commit=true '*.*'
ת»»ÎªÒ»¸ö¿ÉÐÅϵͳ£º
# /usr/lbin/tsconvert Creating secure password database... Directories created. Making default files. System default file created... Terminal default file created... Device assignment file created... Moving passwords... secure password database installed. Converting at and crontab jobs... At and crontab files converted.
¸Ä±äÈ«¾ÖÌØȨ
HP-UX ÓÐÒ»¸öÌØȨ×飬¿ÉÒÔ·ÖÅä¸øÒ»¸ö×éÌØȨ(²Î¼ûprivgrp(4)). ȱʡÇé¿öÏ£¬CHOWNÊÇ·ÖÅä¸øËùÓÐ×éµÄÒ»¸öÈ«¾ÖÌØȨ£º
$ getprivgrp global privileges: CHOWN
/sbin/init.d/set_prvgrpÔÚϵͳÆô¶¯Ê±Ö´ÐÐ/usr/sbin/setprivgrp -f /etc /privgroup. ¿ÉÒÔ´´½¨Ò»¸öÅäÖÃÎļþ£¬É¾³ýËùÓеÄÈ«¾ÖÌØȨ (see setprivgrp(1m)):
# getprivgrp global privileges: CHOWN # echo -n >/etc/privgroup # chmod 400 /etc/privgroup # /sbin/init.d/set_prvgrp start # getprivgrp global privileges:
ÉèÖÃĬÈÏumask.
ת»»µ½¿ÉÐÅϵͳºó£¬Ä¬ÈÏumaskÒѾ¸ÄΪ07077
ÏÞÖÆrootÔ¶³ÌµÇ¼£¬Ö»ÄÜÓÉconsoleµÇ¼
# echo console > /etc/securetty # chmod 400 /etc/securetty
´ò¿ªinetdÈÕÖ¾¹¦ÄÜ
ÔÚ/etc/rc.config.d/netdaemonsÖÐµÄ INETD_ARGS »·¾³±äÁ¿ÖÐÔö¼Ó£l²ÎÊý:
export INETD_ARGS=-l
ɾ³ý²»ÐèÒªµÄϵͳαÕÊ»§
# groupdel lp # groupdel nuucp # groupdel daemon # userdel uucp # userdel lp # userdel nuucp # userdel hpdb # userdel www # userdel daemon
¶ÔÓÚһЩ±£ÁôµÄϵͳαÕÊ»§È磺bin, sys£¬admµÈ, Ó¦µ±½«ÐèÒª½ûÖ¹ÕÊ»§µÄ**ÓÃNP´úÌ棬²¢²»ÌṩµÇ¼shell
Example: bin:NP:60002:60002:No Access User:/:/sbin/noshell ±¾ÐÂÎŹ² 5Ò³,µ±Ç°ÔÚµÚ 2Ò³ 1 2 3 4 5 |