linux为启动菜单加密码
生活随笔
收集整理的這篇文章主要介紹了
linux为启动菜单加密码
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??
為啟動加密碼: grub-md5-crypt Password:?????<==輸入密碼 Retype password:?????<==再輸入一次 $1$6kWUD1$AIZWzT3Ye6CAF0aYceWxr1 復制這個MD5密碼 vim /boot/grub/menu.lst # 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/VolGroup00/LogVol00 #????????? initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux Server (2.6.18-164.el5) password --md5 $1$6kWUD1$AIZWzT3Ye6CAF0aYceWxr1 root (hd0,0) kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol00 rhgb qui et initrd /initrd-2.6.18-164.el5.img 說明:此項功能還是可以破解的,因為用戶可以通過編輯模式(e)進入菜單,按(d)刪除密碼字段并按下b就能通過啟動流程 這樣可以避免: vim /boot/grub/menu.lst # 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/VolGroup00/LogVol00 #????????? initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 password --md5 $1$6kWUD1$AIZWzT3Ye6CAF0aYceWxr1 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Red Hat Enterprise Linux Server (2.6.18-164.el5) ? ????????password --md5 $1$6kWUD1$AIZWzT3Ye6CAF0aYceWxr1 ??????? root (hd0,0) kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol00 rhgb qui et initrd /initrd-2.6.18-164.el5.img 這個實驗可以避免你的menu.lst在啟動過程中被改亂轉(zhuǎn)載于:https://my.oschina.net/f91jty/blog/168364
總結(jié)
以上是生活随笔為你收集整理的linux为启动菜单加密码的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android常用的工具类
- 下一篇: Linux vi格式化文件命令