Smbclient command line usage

Source: Internet
Author: User
Tags ftp commands ftp client
Transferred from: bytes
Smbclient-l 198.168.0.1-u username % Password

2. Use smbclient like an FTP Client
Smbclient // 192.168.0.1/tmp-u username % Password
After the smbclient command is successfully executed, enter the smbclient environment and enter the prompt: SMB:/>? The supported commands are displayed.
Many Commands are similar to FTP commands, such as CD, LCD, get, megt, put, and mput. With these commands, we can access the shared resources of remote hosts.

3. directly use the smbclient command at one time
Smbclient-c "ls" // 192.168.0.1/tmp-u username % Password
And
Smbclient // 192.168.0.1/tmp-u username % Password
SMB:/> ls
Same functions

Create a shared folder
Smbclient-c "mkdir share1" // 192.168.0.1/tmp-u username % Password
If the user shares/192.168.0.1/tmp in read-only mode, a message is displayed.
Nt_status_access_denied making remote directory/share1

4. In addition to smbclient, you can also mount remote shared folders through Mount and smbcount.
Mount Mount-t cifs-O username = administrator, password = 123456 // 192.168.0.1/tmp/mnt/tmp
Unmount umount/mnt/tmp

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.