한글을 지원하지 않는 FTP 프로그램일 경우, OS 언어가 한글로 설정된 서버에 접속할 경우, 영어와 한글의 날짜 표기법이 달라서, 오래된 파일의 경우 리스트에서 볼 수 없는 경우가 있다. 또한 한글로 된 파일이 깨져 보일때도 있다.
따라서, 영문만을 지원하는 FTP 프로그램을 사용하여 FTP를 사용할 경우, 솔라리스 서버에서 언어 설정을 바꿔주는 방법이다.
root 권한으로 작업해야 하며, reboot이 필요하다.
/etc/default/init 파일을 아래와 같이 수정한다.
# vi /etc/default/init
LANG=ko 로 된 부분을
==> LANG=C으로 변경
파일 저장하고
# sync
# reboot
이렇게 하고 FTP 접속해보면 영문으로 파일 리스트가 보이게 된다.
# inetadm |grep ftp
enabled online
svc:/network/ftp:default
#
# inetadm -l
svc:/network/ftp:default
SCOPE NAME=VALUE
name="ftp"
endpoint_type="stream"
proto="tcp6"
isrpc=FALSE
wait=FALSE
exec="/usr/sbin/in.ftpd -a"
user="root"
default
bind_addr=""
default bind_fail_max=-1
default
bind_fail_interval=-1
default max_con_rate=-1
default
max_copies=-1
default con_rate_offline=-1
default
failrate_cnt=40
default failrate_interval=60
default
inherit_env=TRUE <== false 로 변경하면 LANG=C 값
적용됨
default tcp_trace=FALSE
default
tcp_wrappers=TRUE
default connection_backlog=10
#
o false로 값
변경
# inetadm -m
svc:/network/ftp:default inherit_env=FALSE
# inetadm -l
svc:/network/ftp:default
SCOPE NAME=VALUE
name="ftp"
endpoint_type="stream"
proto="tcp6"
isrpc=FALSE
wait=FALSE
exec="/usr/sbin/in.ftpd -a"
user="root"
default
bind_addr=""
default bind_fail_max=-1
default
bind_fail_interval=-1
default max_con_rate=-1
default
max_copies=-1
default con_rate_offline=-1
default
failrate_cnt=40
default failrate_interval=60
inherit_env=FALSE
default tcp_trace=FALSE
default
tcp_wrappers=TRUE
default connection_backlog=10
#
o LANG=C 로 변경되었는지 확인
##### LANG=ko 일 경우
ftp> ls
-l
200 PORT command successful.
150 Opening ASCII mode data connection for
/bin/ls.
총 6
-rw-r--r-- 1 test other 136 2008년 5월 20일
local.cshrc
-rw-r--r-- 1 test other 157 2008년 5월 20일
local.login
-rw-r--r-- 1 test other 174 2008년 5월 20일
local.profile
226 Transfer complete.
ftp: 221 bytes received in
0.00Seconds 221000.00Kbytes/sec.
ftp>
##### LANG=C 일 경우
ftp> ls
-l
200 PORT command successful.
150 Opening ASCII mode data connection for
/bin/ls.
total 6
-rw-r--r-- 1 test other 136 May 20 2008
local.cshrc
-rw-r--r-- 1 test other 157 May 20 2008
local.login
-rw-r--r-- 1 test other 174 May 20 2008
local.profile
226 Transfer complete.
ftp: 212 bytes received in
0.00Seconds 212000.00Kbytes/sec.
ftp>
'Solaris > 문제해결' 카테고리의 다른 글
[cron] c queue max run limit reached 문제 (0) | 2009.09.11 |
---|---|
[sendmail] Name server timeout (0) | 2009.08.24 |
xmanager 연결이 안되는 경우 해결 (0) | 2009.01.30 |
Agent snmpd appeared dead but responded to ping 에러 해결 (0) | 2008.04.02 |
loghost could not be resolved 메시지 해결 (0) | 2008.04.02 |