사용자 도구

사이트 도구


linux:ubuntu:samba

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
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://linuxhint.com/mount-smb-shares-on-ubuntu/|How to Mount SMB Shares on Ubuntu?]]   * [[https://linuxhint.com/mount-smb-shares-on-ubuntu/|How to Mount SMB Shares on Ubuntu?]]
  
-  * 기초 작업<code sh>+  * 기초 작업 
 +<code sh>
 # 패키지 설치 # 패키지 설치
 sudo apt-get install cifs-utils sudo apt-get install cifs-utils
  
  
-sudo mkdir /mnt/local_share+sudo mkdir /mnt/share 
 +</code> 
 +  * credential 파일 생성및 권한 부여: ''.smbcredential'' 
 +<code text> 
 +username=example_username 
 +password=example_password 
 +</code> 
 +<code sh> 
 +sudo chmod 400 /path/to/.smbcredential 
 +</code> 
 +  * 명령행 Mount 
 +<code sh> 
 +sudo mount -t cifs -o rw,vers=3.0,credentials=</path/to/.smbcredential>
 + //<share-pc-ip>/<share-dir> /mnt/share 
 +</code> 
 +  * ''/etc/fstab'' 자동 mount 
 +<code sh> 
 +//<share-pc-ip>/<share-dir>  /mnt/share cifs vers=3.0,credentials=</path/to/.smbcredential> 0 0
  
-명령행 Mount +username/password 직접지정 
-sudo mount -t cifs //<vpsa_ip_address>/<export_share> /mnt/<local_share> +//<share-pc-ip>/<share-dir>  /mnt/share cifs vers=3.0,user=<user on VPSA>,pass=<passwd on VPSA> 0 0
- +
-# /etc/fstab +
-//<vpsa_ip_address>/<export_share>  /mnt/<local_share> cifs user=<user on VPSA>,pass=<passwd on VPSA> 0 0+
 </code> </code>
  
 ===== smbclient ===== ===== smbclient =====
 +==== 일반접속 ====
 +<code sh>
 +smbclient //<host>/<share> -U "username"%"password"
 +# %"password" 생략하면 비밀번호 질문
 +</code>
 +
 ==== 공유 폴더 목록보기 ==== ==== 공유 폴더 목록보기 ====
 <code sh> <code sh>
줄 101: 줄 122:
 client max protocol = SMB3 client max protocol = SMB3
 </code> </code>
-  * 재시작<code sh>+  * 재시작 
 +<code sh>
 sudo service smbd restart sudo service smbd restart
 </code> </code>
linux/ubuntu/samba.1649832980.txt.gz · 마지막으로 수정됨: 2022/04/13 15:56 저자 kwon37xi