°Ô½Ã¹° 260°Ç
   
[redhat6] rsh »ç¿ë¹ý
±Û¾´ÀÌ : theko ³¯Â¥ : 2016-03-15 (È­) 13:12 Á¶È¸ : 5085
1. ÆÐÅ°Áö ¼³Ä¡
yum install rsh-server



2. ¼³Á¤ 
# vim /etc/securetty

rsh    // Ãß°¡
rlogin  //Ãß°¡


# cat /etc/hosts
192.168.122.11 rhcs03
192.168.122.12 rhcs04



# vi /etc/hosts.equiv
rhcs03
rhcs04


# vi /root/.rhosts 
rhcs03 root
rhcs04 root


# vim /etc/xinetd.d/rlogin 
# vim /etc/xinetd.d/rsh 
# vim /etc/xinetd.d/rexec  

disable = no  // À§ 3°³ µ¿ÀÏ
==> disable = yes


/etc/init.d/xinetd restart

3. TEST

# rsh rhcs04 ls /root

theko 2017-11-09 (¸ñ) 23:16

¸¸¾à rloginÀ» »©¸é client¿¡¼­ Á¢±Ù ½Ã Æнº¿öµå¸¦ ¹¯°í,

rsh·Î Á¢±Ù ½Ã¿¡´Â Permission denied. ¸Þ½ÃÁö¿Í ÇÔ²² Á¢±ÙÀÌ ¾ÈµÈ´Ù.


pam ¼³Á¤

ºñ¹Ð¹øÈ£ ¾øÀÌ Á¢±Ù Á¦¾î¸¦ Çϱâ À§Çؼ­ pam ¼³Á¤À» ¼öÁ¤ÇÑ´Ù.

/etc/pam.d/rsh¿Í /etc/pam.d/rlogin¿¡ ´ëÇØ ¾Æ·¡Ã³·³ ¼öÁ¤ÇÑ´Ù. À§ 4ÁÙÀ» required -> sufficient º¯°æ

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com