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-26T00:25:47
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

Bash

mount window share (samba)

sudo mount -t cifs //remoteserver/share -o username=user,password=password /mnt/mountdir
https://snipt.net/embed/6a099450119bb83600f3bd235cab4f7d/
/raw/6a099450119bb83600f3bd235cab4f7d/
6a099450119bb83600f3bd235cab4f7d
bash
Bash
1
2019-08-13T18:17:09
True
False
False
/api/public/snipt/19533/
mount-window-share-samba
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>sudo mount -t cifs //remoteserver/share -o <span class="nv">username</span><span class="o">=</span>user,password<span class="o">=</span>password /mnt/mountdir </span></pre></div> </td></tr></table>
linux, network, samba

Bash

mount a window shared folder

mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver
https://snipt.net/embed/edcad141d5f5c9b3e6ade4ca66e18682/
/raw/edcad141d5f5c9b3e6ade4ca66e18682/
edcad141d5f5c9b3e6ade4ca66e18682
bash
Bash
1
2019-08-20T01:51:49
True
False
False
/api/public/snipt/18696/
mount-a-window-shared-folder
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>mount -t cifs //ntserver/download -o <span class="nv">username</span><span class="o">=</span>vivek,password<span class="o">=</span>myPassword /mnt/ntserver </span></pre></div> </td></tr></table>
bash, linux, samba, sysadmin, windows