sudo mkdir /mnt/Finance
sudo mount -t cifs -o username=plaintext,password=Password123,domain=. //192.168.220.129/Finance /mnt/Finance
#we can use a credential file.
mount -t cifs //192.168.220.129/Finance /mnt/Finance -o credentials=/path/credentialfile
The file credentialfile has to be structured like this:
username=plaintext
password=Password123
domain=.
<aside> 💡
We need to install cifs-utils to connect to an SMB share folder
</aside>
Once a shared folder is mounted, you can use common Linux tools such as find or grep to interact with the file structure.
find /mnt/Finance/ -name *cred*
grep -rn /mnt/Finance/ -ie cred