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