Samba

From 탱이의 잡동사니
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Overview

Linux/Windows file system sharing manager Samba 내용 정리

Installation

<source lang=bash> $ sudo apt-get install samba </source>

Configuration

User add

삼바 사용을 위해서는 반드시 사용자를 추가해야 한다. Linux 사용자로 등록되어 있는 사용자만 삼바 이용자로 추가할 수 있다. <source lang=bash> $ sudo smbpasswd -a test_user New SMB password: Retype new SMB password: Added user test_user.

$ sudo smbpasswd -a notExists New SMB password: Retype new SMB password: Failed to add entry for user notExists. </source>

smb.conf

삼바 설정 파일이다. /etc/samba/smb.conf 에 위치한다.

Erros

close_cnum

Aug  7 21:47:20 raspberrypi smbd[5149]: [2016/08/07 21:47:20.615483,  1] smbd/service.c:1114(make_connection_snum)
Aug  7 21:47:20 raspberrypi smbd[5149]:   mygalaxy (192.168.100.12) connect to service pchero_home initially as user pchero (uid=1001, gid=100) (pid 5149)
Aug  7 21:47:21 raspberrypi smbd[5149]: [2016/08/07 21:47:21.534851,  1] smbd/service.c:1378(close_cnum)
Aug  7 21:47:21 raspberrypi smbd[5149]:   mygalaxy (192.168.100.12) closed connection to service pchero_home

설정한 디렉토리 퍼미션과 관련된 이슈이다. 계정의 홈 디렉토리 권한과 부모 디렉토리의 권한까지 모두 해당 계정의 실행권한이 있어야 한다.

See also