August 14, 2017

Access and Mount an SMB Share via Command Line

This first command lists the available shares at the destination IP:

smbclient -U user -I 192.168.0.105 -L //smbshare/

Now you’ll want to pass set your SMB shares mount point:

mount -t smbfs -o username=winusername //smbserver/myshare /mnt/smbshare

and finally you’ll want to gain access to the SMB share by specifying your Windows login and the machines IP address:

mount -t cifs -o username=winusername,password=winpassword //192.168.0.105/myshare /mnt/share
Print Friendly, PDF & Email

Was this article helpful?

Related Articles

Print Friendly, PDF & Email