JavaScript must be enabled in order for you to see "WP Copy Data Protect" effect. However, it seems JavaScript is either disabled or not supported by your browser. To see full result of "WP Copy Data Protector", enable JavaScript by changing your browser options, then try again.

Enable the password func when entering the single user mode


話說玩過RH系列的Geek,一定對於Single User Mode不陌生,當你忘記密碼或是要Maintain System的時候一定會用到,但是往往進去之後Init直接給你Shell,而不像Ubuntu或SLES之類還是會問你Root的密碼後,才會給你Shell,所以感覺Security不是那麼完善;因此,下面要介紹就算是Single User Mode,也是要經過PAM之後,才能繼續動作,怎麼做呢!?很簡單,看下去你就瞭了,如下:
I. RHEL 6.x
1) 直接修改/etc/sysconfig/init裡面的Setting(先Backup original conf)
#cp /etc/sysconfig/init{,_backup}
#sed -i 's/SINGLE=\/sbin\/sushell/SINGLE=\/sbin\/sulogin/' /etc/sysconfig/init
#cat /etc/sysconfig/init | grep SINGLE
SINGLE=/sbin/sulogin

2) 這邊順便介紹如何取消Ctrl-Alt-Del的Func
#vi /etc/init/control-alt-delete.conf -> 將Start改為Stop或加上#註解
stop on control-alt-delete
#init 6

I. RHEL 5.x
3) 直接在/etc/inittab加上Setting(先Backup original conf)
#cp /etc/inittab{,_backup}
#sed -i '1i su:S:wait:/sbin/sulogin' /etc/inittab
#cat /etc/sysconfig/init | head -n 1
su:S:wait:/sbin/sulogin

4) 這邊順便介紹如何取消Ctrl-Alt-Del的Func
#vi /etc/inittab -> 將下列該行直接加上#註解
#ca::ctrlaltdel:/sbin/shutdown -t3 -r now
#init 6

◎、以上就是如何在RHEL系列Enable the password func when entering the single user mode,如果是RHEL 7.0的話預設就和Ubuntu與SLES一樣要問密碼了,不過還是有方法Skip過去(Ubuntu忘記密碼的方法!?),上述內容均參考這裡,先到這,收工囉!

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
This site is protected by WP-CopyRightPro