티스토리 뷰

#문제

다음은 SAMBA 서버 접속 클라이언트 접속 설정에 대한 내용이다. ( 괄호 ) 안에 알맞은
내용을 넣으시오.
[root@ihd ~]# smbclient ( ① ) IHD
[root@ihd ~]# smbclient ( ② )
smb: \>
■ 조건
- ➀: 호스트이름은 IHD이고 공유 디렉터리명을 확인하는 과정으로 관련 옵션을 적는다.
- ➁: 공유 디렉터리명이 ihd_share일 때 접근하는 인자값을 적는다.

#정답
① -L 2점
② //ihd/ihd_share 또는 \\\\ihd\\ihd_share 또는 \\\\ihd\\ihd_share
(대소문자 구분 없음)


# smbclient 명령어

  - 윈도우 공유 폴더에 접근하기 위한 명령어

  - 사용 형식 : # smbclient  //[HOSTNAME | IP]/[SHARE_NAME(디렉터리)]
                          # smbclient \\\\[HOSTNAME | IP]\\[SHARE_NAME(디렉터리)]

  - 주요 옵션
    -U : 로그인할 SMB 사용자 이름 지정
    -L : 지정한 윈도우 host의 공유 폴더 확인

  - 사용 예시
1. shionista 호스트의 공유 폴더를 확인
  ->  smbclient -L shionista
2. 공유 디렉터리 명이 shared 인 디렉터리에 접근
  ->  smbclient //shionista/shared
  ->  smbclient \\\\shionista\\shared


#man으로 smbclient 검색

root@PSDEV:/root] man -k smbclient
amsamba (8)          - Amanda Application to interface with smbclient
smbclient (1)        - ftp-like client to access SMB/CIFS resources on servers

# smbclient SYNOPSIS

SYNOPSIS
       smbclient [-b <buffer size>] [-d debuglevel] [-e] [-L <netbios name>] [-U username] [-I destinationIP] [-M <netbios name>] [-m maxprotocol] [-A authfile] [-N] [-C] [-g] [-i scope] [-O <socket options>] [-p port] [-R <name resolve order>]
        [-s <smb config file>] [-t <per-operation timeout in seconds>] [-k] [-P] [-c <command>]

       smbclient {servicename} [password] [-b <buffer size>] [-d debuglevel] [-e] [-D Directory] [-U username] [-W workgroup] [-M <netbios name>] [-m maxprotocol] [-A authfile] [-N] [-C] [-g] [-l log-basename] [-I destinationIP] [-E]
        [-c <command string>] [-i scope] [-O <socket options>] [-p port] [-R <name resolve order>] [-s <smb config file>] [-t <per-operation timeout in seconds>] [-T<c|x>IXFqgbNan] [-k]





root@PSDEV:/root/li2021] smbclient -L 192.168.172.40
Enter SAMBA\root's password: 
Anonymous login successful

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk      Printer Drivers
        Shared Folder   Disk      Proframe Shared Folder
        IPC$            IPC       IPC Service (Samba 4.10.16)
Reconnecting with SMB1 for workgroup listing.
Anonymous login successful

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31