This page looks best with JavaScript enabled

Mounting SAMBA-CIFS from the CLI

 ·  🎃 kr0m

This post is intended for those interested in accessing SAMBA/CIFS shared files from the command line.

First, we will install the necessary applications.

emerge -av cifs-utils

View shared resources:

smbclient -L IP_SERVER -UUSUARIO

Mount resource:

mkdir /mnt/samba
mount -t cifs //IP_SERVER/RECURSO /mnt/samba/ -o"username=USUARIO"

If you liked the article, you can treat me to a RedBull here