Access and Mount an SMB Share via Command Line

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

smbclient -U user -I -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 // /mnt/share
Print Friendly, PDF & Email

Was this article helpful?

Related Articles

Print Friendly, PDF & Email