/etc/profile 에 대해서 질문

restday22의 이미지

우분투에서 한글 설정이나 path설정을 /etc/profile 해놨습니다.
사용자 계정으로 들어가면 적용이되는데 su로 root 계정으로 변경하면 path하고 언어설정이
다른걸로 바뀌는군요 su 한다음 source /etc/profile 명령어를 매번쓰기도 그렇고
어느 부분을 변경해야하는지 아시는분 답변 부탁드립니다.

restday@restday-desktop:~$ echo $LANG
ko_KR.EUC-KR
restday@restday-desktop:~$ su
Password:
root@restday-desktop:/home/restday# echo $LANG
ko_KR.UTF-8
root@restday-desktop:/home/restday# cat /etc/profile
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

LANG="ko_KR.EUC-KR"
export PATH=/usr/cross-tools/bin:$PATH

검객의 이미지

su -
이렇게 하면 되지 않나요??

우리 항시 웃고 살아요 ^^

restday22의 이미지

/etc/default/locale 여기 수정하니까 되는군요