====== Samba ======= ===== Client ===== 1. windows에서 공유폴더 생성 2. samba 설치 sudo apt-get install samba samba-common-bin 3. /etc/fstab 수정 sudo id {user} # uid, gid 확인 //192.168.0.?/shared /mnt/shared cifs username={user},password={passwd},uid=1000,gid=1000,dir_mode=0755,file_mode=0755 0 0 # fstab에 추가 sudo mount /mnt/shared # 테스트 3.1 (또는) 명령어 입력 sudo mount -t cifs -o username={user},password={passwd},uid=1000,gid=1000,dir_mode=0755,file_mode=0755 //WIN_SHARE_IP/ /mnt/win_share * https://linuxize.com/post/how-to-mount-cifs-windows-share-on-linux/ * https://ssaemo.tistory.com/49 * https://sancs.tistory.com/109 ===== Server ===== 1. samba 서버 설치 sudo apt install samba 2. samba 계정 추가 sudo smbpasswd -a {Ubuntu ID} 3. 설정파일 수정 # /etc/samba/smb.conf에 추가 [{share name}] comment = ... path = /home/rex8312/... read only = no browseable = yes valid users = rex8312 ... 4. samba 재시작 sudo service smbd restart * https://jhnyang.tistory.com/277 * http://storycompiler.tistory.com/31