|
1. smitty inetdconf
2. "Change / Show Characteristics of an inetd Subserver"À» ¼±ÅÃÇÕ´Ï´Ù.
3. ftp¸¦ ¼±ÅÃÇÕ´Ï´Ù
4. ¡°Change the Service Program Command Line ARGUMENTS¡± Ç׸ñ¿¡ ftpd -l¸¦ ³Ö½À´Ï´Ù.
5. <Enter>¸¦ ÀÔ·ÂÇÕ´Ï´Ù
6. /etc/syslog.conf ÆÄÀÏ¿¡
daemon.info /tmp/ftp.log ¸¦ ÷°¡ÇÕ´Ï
7. #touch /tmp/ftp.log
8. #ps -ef|grep syslogdÀÇ ½ÇÇà°á°ú ³ª¿À´Â syslogdÀÇ pid¸¦ »ç¿ëÇØ
#kill -1 <syslogd_pid>
¸¦ ½ÇÇàÇÏ¿© º¯°æµÈ /etc/syslog.conf°¡ syslogd¿¡ Àû¿ëµÇµµ·Ï ÇÕ´Ï´Ù.
----------------------------------------------------------------------
----------
FTPÀü¼Û½Ã ±âº» Æ۹̼ÇÀ» ¼öÁ¤Çϱâ
----------------------------------------------------------------------
----------
ftp ÆÄÀÏ Àü¼Û½ÃÀÇ µðÆúÆ® umsk´Â 027ÀÔ´Ï´Ù. µû¶ó¼ ÆÄÀÏ Àü¼Û °á°ú Çã°¡»óÅ°¡ 640À¸·Î µÇ´Â °ÍÀÔ´Ï´Ù.
À̸¦ È®ÀÎÇÏ·Á¸é ´ÙÀ½°ú °°ÀÌ ftp ÇÁ·ÒÇÁÆ®¿¡¼ site umask ¼ºê ¸í·ÉÀ» »ç¿ëÇÕ´Ï´Ù
ftp> site umask
current umask is 027
ÀÌ ftp ¼¼¼Ç¿¡¼ umask¸¦ 022·Î º¯°æÇÏ¸é ¿øÇÏ´Â °á°ú¸¦ ¾òÀ» ¼ö ÀÖ½À´Ï´Ù. ´ÙÀ½°ú °°ÀÌ ÇϽʽÿÀ.
ftp> site umask 022
ÀÌ´Â ÇØ´ç ftp ¼¼¼Ç¿¡¸¸ ¿µÇâÀ» ¹ÌĨ´Ï´Ù. ¸ðµç ftp ¼¼¼Ç¿¡¼ ¿µ±¸È÷ umask¸¦ ¹Ù²Ù·Á¸é /etc/inetd.conf ÆÄÀÏÀ» ÆíÁýÇÏ¿© ±× ¾È¿¡¼ ftp µð¸óÀÇ umask¸¦ ¹Ù²Ù¾î¾ß ÇÕ´Ï´Ù.
¸ÕÀú ´ÙÀ½°ú °°ÀÌ ÆíÁý±â·Î ÀÌ ÆÄÀÏÀ» ¿©½Ê½Ã¿À.
# vi /etc/inetd.conf
¿©±â¼
ftpd ÇàÀ» ã¾Æ ³¡¿¡ "-u xxx"¶ó°í ÀÔ·ÂÇØ ÁֽʽÿÀ.
¿¹¸¦ µé¸é, ´ÙÀ½°ú °°½À´Ï´Ù.
ftp stream tcp nowait root /usr/sbin/ftpd ftpd -u 111
ÆÄÀÏÀ» ÀúÀåÇÏ°í "refresh -s inetd" ¸í·ÉÀ» ¼öÇàÇϽʽÿÀ.
[Ãâó] [º»¹®½ºÅ©·¦] ftp ·Î±× ³²±â±â|ÀÛ¼ºÀÚ ±äÇÏ´Ã
|