리눅스 싱글모드 못 들어가게 비밀번호 거는 법


리눅스 싱글모드 못 들어가게 비밀번호 거는 법

http://debianwiki.or.kr/index.php/Grub-md5-crypt
http://cafe.naver.com/itbanknetsys9.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=92
http://cafe.naver.com/ocmkorea.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=4338

여기 글들을 참고하세요

[root@localhost ~]# grub
grub            grub-install    grub-md5-crypt  grub-terminfo   grubby         
[root@localhost ~]# grub-md5-crypt
Password:
Retype password:
$1$Adwde/$egdfuFkX6xkHDkvntKUnf1    - 이것을 복사해둔다
[root@localhost ~]#
[root@localhost ~]#


[root@localhost ~]# vi /boot/grub/grub.conf


저기 보이는 타이틀 위에 생성한 암호를 삽입한다.


[root@localhost ~]# grub-md5-crypt
Password:
Retype password:
$1$5exde/$oEevyHJUjwhShnIkn0OOW.
[root@localhost ~]# vi /boot/grub/grub.conf

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/vol0/root
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
password --md5 $1$5exde/$oEevyHJUjwhShnIkn0OOW.
title mylinux hehehehehe
        root (hd0,0)
        kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/vol0/root rhgb quiet vga=0x307
vga=0x307
        initrd /initrd-2.6.18-164.el5.img
~