본문 바로가기

Single Board Computer

Single Board Computer setting 2. SAMBA

□ SAMBA설치

(root 계정에서 설치, root 계정이 아닌 경우 명령문 앞에 sudo를 붙여서 실행해야 함)

apt install samba

□ SAMBA 설정 파일 편집

nano /etc/samba/smb.conf

------------------------------ smb.conf 설정

[global]

workgroup=WORKGROUP

security=user

dos charset = CP949

display charset = UTF8

unix charset = UTF8

min protocol = SMB2

Raspberry OS설정

[Raspberry]

comment = All Users

path = /

valid users = xxxx(원하는 user 명 넣기)

guest ok = yes

read only = no

writable = yes

browseable = yes

creat mask = 0777

directory mask = 0777

BananaPro OS설정

[BananaPro]

comment = All Users

path = /

valid users = xxxx(원하는 user 명 넣기)

guest ok = yes

read only = no

writable = yes

browseable = yes

creat mask = 0777

directory mask = 0777

홈디렉토리를 보고 싶지 않을 경우

smb.conf [homes]와 그아래 설정항목 앞에 ;표시하여 주석 처리

------------------------------

□ SAMBA 사용자 등록

smbpasswd -a aaaa

smbpasswd -a bbbb

□ SAMBA 버전 확인

'smbstatus' --version

□ SAMBA 재시작

sudo /etc/init.d/smbd restart