|
root password¸¦ Àؾî¹ö·Á root·Î loginÀÌ ¾ÊµÇ´Â °æ¿ì¿¡´Â OS CD¸¦ »ç¿ëÇÏ¿© ¾Æ·¡¿Í °°ÀÌ º¹±¸¸¦ ÇÒ ¼ö ÀÖ´Ù. ¸¸¾à OS CD¸¦ °®°íÀÖÁö ¾Ê´Ù¸é º¹±¸ÇÒ ¹æ¹ýÀÌ ¾ø´Ù.
1. ½Ã½ºÅÛÀ» down ½ÃÅ°°í OS CD¸¦ CD-ROM drive¿¡ ³Ö´Â´Ù.
root·Î loginÀ» ÇÒ¼ö ¾øÀ¸¹Ç·Î ½Ã½ºÅÛÀ» ÀçºÎÆà ½ÃÅ°±â À§Çؼ´Â keyboard¿¡¼ "stop" key¿Í "a" key¸¦ µ¿½Ã¿¡ ´·¯¼ ½Ã½ºÅÛÀ» PROM mode(ok prompt »óÅÂ) ·Î ÀüȯÇÑ´Ù
2. ¾Æ·¡¿Í °°ÀÌ CDROM À» ÀÌ¿ëÇÏ¿© single-user mode·Î ºÎÆÃÇÑ´Ù
ok boot cdrom -sw
3. Bourne shell prompt(#)°¡ ³ªÅ¸³ª¸é, /·Î »ç¿ëÇÏ´ø disk device¸¦ /a·Î mount ÇÑ´Ù.
/·Î »ç¿ëÇÏ´ø disk device°¡ /dev/dsk/c0t0d0s0ÀÎ °æ¿ì ¾Æ·¡¿Í °°ÀÌ ÇÑ´Ù.
# mount /dev/rdsk/c0t0d0s0 /mnt
4. À§¿Í °°ÀÌ ÇÏ¸é ±âÁ¸¿¡ /etc directory¿¡ ÀÖ´ø shadow ÈÀÏÀÌ /a/etc/shadow·Î Á¸ÀçÇÏ°Ô µÇ¸ç, ÀÌ ÈÀÏÀ» vi·Î ¿¾î¼ root¿¡ Á¤ÀǵǾî ÀÖ´Â passwordºÎºÐÀ» Áö¿î´Ù.
# TERM=vt100
# export TERM
# vi /a/etc/shadow
root:vBrrOh8AIqYV6:6445::::::
vBrrOh8AIqYV6 <-- ÀÌ ºÎºÐÀ» Áö¿î´Ù
º¯°æÈÄ
# cat /a/etc/shadow
root::6445::::::
5. À§¿Í °°ÀÌ ÇÑÈÄ ½Ã½ºÅÛÀ» ÀçºÎÆà Çϸé root·Î password ¾øÀÌ login°¡´ÉÇÏ´Ù.
|