Netatalk 리눅스에서 AFP 서버 구성
설치
-
설치 가능 확인
# yum searc netatalk Loaded plugins: fastestmirror No such command: searc. Please use /usr/bin/yum --help [root@sysop-t1 ~]# yum search netatalk Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.kakao.com * epel: mirrors.aliyun.com * extras: mirror.kakao.com * remi: ftp.riken.jp * remi-safe: ftp.riken.jp * updates: mirror.kakao.com ================================================================ N/S matched: netatalk ================================================================= netatalk-devel.x86_64 : Development files for netatalk netatalk.x86_64 : Open Source Apple Filing Protocol(AFP) File Server Name and summary matches only, use "search all" for everything.
-
yum 이용하여 설치
yum install netatalk
-
설치 확인
# yum list installed | grep netatalk netatalk.x86_64 5:3.1.12-10.el7 @epel # afpd -v afpd 3.1.12 - Apple Filing Protocol (AFP) daemon of Netatalk This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Please see the file COPYING for further information and details. afpd has been compiled with support for these features: AFP versions: 2.2 3.0 3.1 3.2 3.3 3.4 CNID backends: dbd last tdb mysql afp.conf: /etc/netatalk/afp.conf extmap.conf: /etc/netatalk/extmap.conf state directory: /var/lib/netatalk/ afp_signature.conf: /var/lib/netatalk/afp_signature.conf afp_voluuid.conf: /var/lib/netatalk/afp_voluuid.conf UAM search path: /usr/lib64/netatalk// Server messages path: /var/lib/netatalk/msg/ # systemctl list-unit-files | grep netatalk netatalk.service disabled
-
자동 구동 설정
# systemctl enable netatalk Created symlink from /etc/systemd/system/multi-user.target.wants/netatalk.service to /usr/lib/systemd/system/netatalk.service.
Config 설정
-
afpd.conf
; ; Netatalk 3.x configuration file ; [Global] mac charset = MAC_KOREAN afp listen = 192.168.100.71 log file = /tmp/netatalk.log log level = default:debug [Homes] basedir regex = /home [My AFP Volume] path = /home/volume [My Time Machine Volume] path = /path/to/backup time machine = yes
-
Global 파라미터
#- 문자셋 mac charset = MAC_KOREAN #- 로그인 메시지 (Volume 에서 개별 지정도 가능) login message = <message> #- 리슨IP afp listen = 118.131.81.102 #- 로그파일 log file = /var/log/netatalk.log #- AFP 세션 종료 시간 지정 disconnect time = <number> (default: 24) #- 동시 연결 클라이언트 수 max connections = <number> (default: 200) #- 로그 설정 log level = type:level logtypes: default, afpdaemon, logger, uamsdaemon loglevels: severe, error, warn, note, info, debug, debug6, debug7, debug8, debug9, maxdebug #- 접근 허용/거부 hosts allow = IP host address/IP netmask bits [ ... ] # 지정한 것 이외에는 거부 hosts deny = IP host address/IP netmask bits [ ... ] # 지정된 것 이외에는 허용 Example) hosts allow = 10.1.0.0/16 10.2.1.100 #- 게스트로 접속시 사용자 지정 guest account = name #- AFP에 접속시 UNIX의 특정 계정으로 고정, 파일 공유시 유용 하며 보안 문제를 잘 살펴야 함 force user = USER #- AFP에 접속시 UNIX의 특정 그룹으로 고정 force group = GROUP
-
Volume 파라미터
#- 경로 지정 path = PATH #- 확장 속성 ea = none|auto|sys|ad|samba (default: auto) #- 유효 사용자 지정 valid users = user @group #- 유효 하지 않은 사용자 지정 invalid users = users/groups #- Read-only 사용자 지정 rolist = users/groups #- Read/Write 사용자 지정 rwlist = users/groups #- 점(.) 으로 시작하는 파일 보이지 않게 함 (Mac OS X 에서는 이옵션을 사용하면 문제가 발생함) #- Mac OS X에서는 .으로 시작하는 임시 파일을 만든 후 최종 파일로 만드는 응용프로그램에서 저장하면 #- 파일이 보이지 않는 부작용이 발생함 invisible dots = yes|no (default: no) #- 읽기 전용 볼륨 설정 read only = yes|no (default: no) #- 파일 퍼미션 (unix의 chmod 스타일로 작성) file perm = <mode> directory perm = <mode> ex) file perm = 0660, directory perm = 0770 ※ "unix priv = no" 일 경우에는 사용하면 안됨 #- 볼륨에 Time Machine 지원 time machine = yes|no (default: no)
-
Character Sets
MAC_CENTRALEUROPE MAC_CHINESE_SIMP MAC_CHINESE_TRAD MAC_CYRILLIC MAC_GREEK MAC_HEBREW MAC_JAPANESE MAC_KOREAN MAC_ROMAN MAC_TURKISH
실행 및 운영
-
데몬 실행
systemctl start netatalk
-
Macintosh 에서 접속
1) finder 실행 2) <command key> + k 눌러서 접속창 실행 3) afp://<ip주소> 쓰고 확인
'리눅스 (Linux)' 카테고리의 다른 글
vim(vi) 즐겨 사용하는 설정 (0) | 2021.03.23 |
---|---|
Linux 소소한 명령 및 팁 요약 (0) | 2021.03.17 |
CentOS의 firewalld 관리 (0) | 2021.03.14 |