수요일, 8월 13, 2008

Samba connection to a Linux share from OS X

맥(OSX 10.5.4)에서 samba를 이용해 linux에 있는 일반 파일과 디렉토리를 공유하는데는 특별한 문제가 없다. 그런데 공유하는 자료가 만약 심볼릭 링크를 포함하고 있다면 문제가 조금 다르다. 맥에서 링크를 따라가지 못하고 “original item can not be found”라는 에러를 토해 내는 것이다. 윈도우즈 머신은 아무런 문제가 없다. 윈도우즈는 일반 폴더나 심볼릭 링크나 브라우즈하는데 특별한 차이점을 보이지 않는다.

한동안 이 문제로 속을 썩히다 어제 드디어 몇시간의 구글링끝에 답을 찾았다. 리눅스쪽의 smb.conf 파일에다 “unix extensions = no”를 더해 주면 된다.

그런데 만약 내가 linux쪽의 셋팅을 고칠 수 없는 상황이면 어떡하나? 분명히 OSX client쪽에서 해당 옵션을 선택할 수 있는 방법이 있어야 할텐데?
-------
With my Macbook(OSX 10.5.4), I've had a problem with following symbolic links on my Linux share over samba. I still could see Linux shares and browse normal shared files and directories. However, when it comes to symbolic links, I kept getting the “original item can not be found” error whenever I clicked a symlink contained in a Linux share. Windows had no problem. It did not show any differences in following a regular folder and a symlink to a folder on Linux machines.

Yesterday, I finally got the solution to the problem after a couple of hours of Googling. By adding “unix extensions = no” to smb.conf on LINUX side (i.e. samba server’s side), my Macbook started to work like a charm with symbolic links. Voila~

BTW, what if I can't change the settings on linux side? Is there a corresponding option on the client side?

0 Comment: