snipt

Ctrl+h for KB shortcuts

Bash

how to mount a shared win folder

1
2
3
4
5
 sudo mount -ousername=login,password=password  -t cifs \\\\IPoNomeMacchina\\SharedName percorsodelmount

example:

sudo mount -ousername=pippo,password=pippo123  -t cifs \\\\192.168.1.52\\logs /mnt/tmpmnt
https://snipt.net/embed/3429850a25dbabfebb0f8fb8393ed869/
/raw/3429850a25dbabfebb0f8fb8393ed869/
3429850a25dbabfebb0f8fb8393ed869
bash
Bash
5
2019-08-01T05:42:07
True
False
False
/api/public/snipt/26698/
how-to-mount-a-shared-win-folder
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a> sudo mount -ousername<span class="o">=</span>login,password<span class="o">=</span>password -t cifs <span class="se">\\\\</span>IPoNomeMacchina<span class="se">\\</span>SharedName percorsodelmount </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>example: </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>sudo mount -ousername<span class="o">=</span>pippo,password<span class="o">=</span>pippo123 -t cifs <span class="se">\\\\</span>192.168.1.52<span class="se">\\</span>logs /mnt/tmpmnt </span></pre></div> </td></tr></table>
bash, clientside, samba