본문 바로가기
시놀로지ㆍNAS/리눅스

리눅스 CentOS Samba 설정

by #XTRM 2021. 5. 11.
반응형

CentOS Samba 설정

1. 터미널 su 명령 root 전환


2. 삼버 설치
   yum -y install samba

 

  ※ 공유폴더명 /xtrm_smb


3. 폴더생성

   mkdir /xtrm_smb


4. 퍼미션설정

   chmod 777 /xtrm_smb


5. 설정파일 편집

   vi /etc/samba/smb.conf   또는  gedit /etc/samba/smb.conf


workgroup = WORKGROUP          ;workgroup 이름 지정


[xtrm_smb]
comment = xtrm_smb share       ; 공유 설명
path = /xtrm_smb                    ; 공유 위치
browseable = yes                     ; 목록에 보일건지 여부
public = yes
writable = yes                          ; 쓰기 가능 여부
write list = administrator
cresate mask = 0777
directory mask = 0777


6. 방화벽

    --방화벽 끄기
service firewalld status         ;방화벽이 켜져 있는지 확인
service firewalld stop           ;방화벽 중지
systemctl disable firewalld    ;방화벽 사용안함

 

   --방화벽 추가해야 할 경우
firewall-cmd --permanent --zone=public --add-service=samba
firewall-cmd --permanent --reload


7. 삼바 실행

   service smb restart


8. 기존 설정인 'SELINUX=enforcing' 주석처리

   vi /etc/selinux/config    또는   gedit /etc/selinux/config

 

   'SELINUX=disabled' 으로 수정

 


9. 저장 후 CentOS 재부팅

 

 

^^*

반응형

'시놀로지ㆍNAS > 리눅스' 카테고리의 다른 글

리눅스 파일명 변경  (0) 2021.05.12
리눅스 find 명령어 XTRM 서버 캡쳐  (0) 2021.05.12
리눅스 방화벽 관리  (0) 2021.05.11
리눅스 기본명령어  (0) 2021.05.11

댓글