samba 설치된 컴에 mount 연결 하기
1 2 3 |
sudo apt-get install cifs-utils |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$ sudo apt-get install cifs-utils Reading package lists... Done Building dependency tree Reading state information... Done cifs-utils is already the newest version (2:6.8-2). The following packages were automatically installed and are no longer required: gconf-service gconf2-common libexiv2-14 libgconf-2-4 libgfortran3 libgmime-2.6-0 libmicrodns0 libncurses5 libssl1.0.2 lxplug-volume rpi-eeprom-images uuid-dev Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 276 not upgraded. |
명령어로 네트워크 컴퓨터 조사
1 2 3 |
smbclient -L 192.168.0.111 -U% |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
sudo smbclient -L 192.168.1.163 -U% Sharename Type Comment --------- ---- ------- homes Disk Home Directories public Disk public anonymous access print$ Disk Printer Drivers IPC$ IPC IPC Service (Samba 4.13.13-Debian) Reconnecting with SMB1 for workgroup listing. smbXcli_negprot_smb1_done: No compatible protocol selected by server. protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE Failed to connect with SMB1 -- no workgroup available |
1 2 3 4 5 |
$ sudo mkdir /mnt/public $ sudo mount -t cifs //192.168.1.163/public /mnt/public Password for root@//192.168.1.163/public: ********** |
1 2 3 4 |
$ sudo cp test.jpg /mnt/public cp: failed to access '/mnt/public': Stale file handle |
1 2 3 |
$ sudo umount -f /mnt/public |
1 2 3 4 5 |
$ sudo mount -t cifs //192.168.1.163/public /mnt/public Password for root@//192.168.1.163/public: ********** root@localhost:/data $ sudo cp test.jpg /mnt/public |