삼바에 리눅스로 접근할때 한글 사용
글쓴이: lacovnk / 작성시간: 월, 2005/02/28 - 5:05오후
samba에서
dos charset = cp949 unix charset = euc-kr
로 되어있고, 보시다 시피 삼바 서버에서는 euc-kr를 사용하고 있습니다. (display charset은 안 쓰는 것 같아 굳이 설정하지 않았습니다; )
Quote:
display charset (G)
Specifies the charset that samba will use to print messages to stdout and stderr and SWAT
will use. Should generally be the same as the unix charset.
Default: display charset = ASCII
Example: display charset = UTF8
unix charset (G)
Specifies the charset the unix machine Samba runs on uses. Samba needs to know this in
order to be able to convert text to the charsets other SMB clients use.
This is also the charset Samba will use when specifying arguments to scripts that it
invokes.
Default: unix charset = UTF8
Example: unix charset = ASCII
dos charset (G)
DOS SMB clients assume the server has the same charset as they do. This option specifies
which charset Samba should talk to DOS clients.
The default depends on which charsets you have installed. Samba tries to use charset 850
but falls back to ASCII in case it is not available. Run testparm(1) to check the default
on your system.
No default
저렇게 해 놓으면 윈도우 머신에서 접근해서 아무런 문제가 없는데, utf8을 사용하고 있는 리눅스 머신에서 접근할때 한글 문제를 해결하지 못하고 있습니다.
smbmount 에서 iocharset=utf8,codepage=cp949 를 줬는데도 그러는 군요..
Quote:
iocharset=<arg>
sets the charset used by the Linux side for codepage to charset translations (NLS). Argu‐
ment should be the name of a charset, like iso8859-1. (Note: only kernel 2.4.0 or later)
codepage=<arg>
sets the codepage the server uses. See the iocharset option. Example value cp850. (Note:
only kernel 2.4.0 or later)
마운트 해서, utf8 머신에서 작성한 한글파일명은 삼바서버에서 ____로 보이고, 삼바서버에서 만든 한글파일명은 ??????으로 뜹니다;
또 설정해 줄 것이 어디 있나요? 으으..
덧. 마운트 옵션 에러의 로그는 어디에 저장되나요? /var/log/에 안남는군요.. 서버쪽의 /var/log/samba/를 뒤져봐도 없고..
Forums:
결국 꽁수로.. ㅠㅠ
데스크탑 리눅스(utf8)로 부팅해서 마운트된 윈도우 파티션(euc-kr)에 복사합니다. (이건 호환 잘 되니까..)
윈도우로 부팅해서, 삼바머신(euc-kr)으로 복사합니다. (이것도 잘되니까..)
-_-;;
댓글 달기