Linux system smbclient command usage

  

Linux command smbclient is mainly used to store and read the client program on the server, and parse and record these programs. This article will specifically introduce the use of the Linux system smbclient command.

1, lists the files in a shared folder IP address provided

smbclient -L 198.168.0.1 -U username% password

2, like FTP The client uses smbclient

smbclient //192.168.0.1/tmp -U username%password

After executing the smbclient command successfully, enter the smbclient environment and the prompt appears: smb:\\"

There are many commands similar to the ftp command, such as cd, lcd, get, megt, put, mput, etc. With these commands, we can access the shared resources of the remote host.

3, directly use the smbclient command

smbclient -c “ls” //192.168.0.1/tmp -U username%password

and

smbclient //192.168.0.1/tmp -U username%password

smb:\\"ls

The same function

Example, create a shared folder

smbclient -c “mkdir share1” //192.168.0.1/tmp -U username%password

If the user share //192.168.0.1/tmp is read-only, it will prompt < Br>

NT_STATUS_ACCESS_DENIED making remote directory \\share1

4. In addition to using smbclient, you can also mount remote shared folders via mount and smbcount

mount -t smbfs -o username=administrator ,pass=123456 //192.168.0.1/tmp /mnt/tmp

smbmount //192.168.0.1/tmp /mnt/tmp -o username=administrator

The above is the Linux system smbclient command The use of the smbclient command in the Linux system is still quite extensive.

Copyright © Windows knowledge All Rights Reserved