문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
linux:ubuntu:samba [2022/04/13 15:57] kwon37xi [mouting smbfs] |
linux:ubuntu:samba [2022/07/21 22:49] (현재) kwon37xi [Windows 10 Share 에 접속하지 못하는 현상] |
||
|---|---|---|---|
| 줄 67: | 줄 67: | ||
| - | sudo mkdir /mnt/local_share | + | sudo mkdir /mnt/share |
| + | </ | ||
| + | * credential 파일 생성및 권한 부여: '' | ||
| + | <code text> | ||
| + | username=example_username | ||
| + | password=example_password | ||
| + | </ | ||
| + | <code sh> | ||
| + | sudo chmod 400 / | ||
| </ | </ | ||
| * 명령행 Mount | * 명령행 Mount | ||
| <code sh> | <code sh> | ||
| - | sudo mount -t cifs //<vpsa_ip_address>/<export_share> /mnt/< | + | sudo mount -t cifs -o rw, |
| + | //<share-pc-ip>/<share-dir> /mnt/share | ||
| </ | </ | ||
| * ''/ | * ''/ | ||
| <code sh> | <code sh> | ||
| - | //<vpsa_ip_address>/<export_share> /mnt/<local_share> cifs user=< | + | //<share-pc-ip>/<share-dir> /mnt/share cifs vers=3.0, |
| + | |||
| + | # username/ | ||
| + | //< | ||
| </ | </ | ||
| ===== smbclient ===== | ===== smbclient ===== | ||
| + | ==== 일반접속 ==== | ||
| + | <code sh> | ||
| + | smbclient //< | ||
| + | # %" | ||
| + | </ | ||
| + | |||
| ==== 공유 폴더 목록보기 ==== | ==== 공유 폴더 목록보기 ==== | ||
| <code sh> | <code sh> | ||
| 줄 104: | 줄 122: | ||
| client max protocol = SMB3 | client max protocol = SMB3 | ||
| </ | </ | ||
| - | * 재시작< | + | * 재시작 |
| + | <code sh> | ||
| sudo service smbd restart | sudo service smbd restart | ||
| </ | </ | ||