Network management: Difference between revisions

Jump to navigation Jump to search
add making a samba share
Line 5: Line 5:
at the end of <span class="shell">/etc/samba/smb.conf</span> add a share config.
at the end of <span class="shell">/etc/samba/smb.conf</span> add a share config.


<source lang="properties">
<syntaxhighlight lang="properties">
[ea]
[ea]
         comment = pistis - echo admin
         comment = pistis - echo admin
Line 12: Line 12:
         read only = No
         read only = No
         create mask = 0755
         create mask = 0755
</source>
</syntaxhighlight>


then add the Samba account.
then add the Samba account.


<source lang="bash">
<syntaxhighlight lang="bash">
$ sudo smbpasswd -a mhan
$ sudo smbpasswd -a mhan
</source>
</syntaxhighlight>


then restart samba
then restart samba


<source lang="bash">
<syntaxhighlight lang="bash">
$ sudo systemctl restart smbd.service nmbd.service
$ sudo systemctl restart smbd.service nmbd.service
</source>
</syntaxhighlight>


then on Windows execute the following. For the username, you may have to enter it in the form <span class="package">mhan@pistis</span> or <span class="package">pistis\mhan</span>. Enter the password you used when you added the Samba account for the user.
then on Windows execute the following. For the username, you may have to enter it in the form <span class="package">mhan@pistis</span> or <span class="package">pistis\mhan</span>. Enter the password you used when you added the Samba account for the user.


<source lang="doscon">
<syntaxhighlight lang="doscon">
C:\>net use Z: \\pistis\ea /savecred /persistent:yes
C:\>net use Z: \\pistis\ea /savecred /persistent:yes
</source>
</syntaxhighlight>
 


== Checking the accessibility of a port through the network ==
== Checking the accessibility of a port through the network ==

Navigation menu