1. Boot loader GRUB
_ configure boot loader to:
+ time out : 10s
+ show menu choosing OS
+ title
_ edit file /etc/grub.conf
+ edit row 11: timeout=10
+ put "#" in row 13 : #hiddenmenu
+ edit row 14: title Redhat5
+ reboot
2. Services management
_ View list of services status at all runlevel: #chkconfig --list
_ Enable service at a runlevel: #chkconfig --level 35 httpd on
_ Disable service at a runlevel: #chkconfig --level 35 httpd off
_ Add a service to list: #chkconfig --add squid
_ Delete a service to list: #chkconfig --del named
rc3.d/K15httpd --symbolic link--> init.d/httpd
3. File /etc/inittab
_ Config default runlevel to 5 -> edit row 18
_ Disable combine CTRL+ALT+DELETE -> edit row 32
_ Disable all terminal, except terminal 1 -> edit row 46->50
4. Reset password root
_ Use boot loader:
+ reboot
+ highlight OS which need reset password -> E
+ highlight kernel row -> E
+ add "-s"
+ reboot
+ use passwd to reset password root
_ Use setup DVD:
+ boot to DVD
+ cmd: linux rescue
+ #chroot /mnt/sysimage
+ reset password and reboot
5. Set password to boot loader
_ Edit file /etc/grub.conf
_ Insert at row 14 (before Title): password <password>
6. Create an encrypted password for boot loader
_ create a md5 password: #grub-md5-crypt
_ edit /etc/grub.conf : password --md5 <encryptedPassword>
_ reboot
0 nhận xét:
Đăng nhận xét