문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
linux:ubuntu:samba [2022/04/13 15:56] kwon37xi [mouting smbfs] |
linux:ubuntu:samba [2022/04/13 16:04] kwon37xi [mouting smbfs] |
||
---|---|---|---|
줄 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/< | + | |
</ | </ | ||