{"id":1345,"date":"2018-02-22T05:18:24","date_gmt":"2018-02-22T03:18:24","guid":{"rendered":"https:\/\/community.virtono.com\/?p=1345"},"modified":"2020-06-10T16:40:16","modified_gmt":"2020-06-10T13:40:16","slug":"samba-sharing-with-authentication","status":"publish","type":"post","link":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/","title":{"rendered":"Samba sharing with authentication"},"content":{"rendered":"<p>Complementing a simple Samba release, this article shows how to\u00a0create a username and password based Samba share\u00a0using a\u00a0Debian\u00a08 based system.\u00a0Ubuntu\u00a016.04 and Windows 10 are used\u00a0as client software for testing the connection\u00a0.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_73 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/#Installation_and_configuration_on_the_Debian_server\" title=\"Installation and configuration on the Debian server\">Installation and configuration on the Debian server<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/#Installation_of_the_Samba_service\" title=\"Installation of the Samba service\">Installation of the Samba service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/#User-limited_configuration\" title=\"User-limited configuration\">User-limited configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/#Restart_of_Samba\" title=\"Restart of Samba\">Restart of Samba<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/#Mount_the_shares\" title=\"Mount the shares\">Mount the shares<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/#On_a_Linux_based_client\" title=\"On a Linux based client\">On a Linux based client<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/#On_a_Windows_10_client\" title=\"On a Windows 10 client\">On a Windows 10 client<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Installation_and_configuration_on_the_Debian_server\"><\/span><span id=\"Installation_und_Konfiguration_am_Debian_Server\" class=\"mw-headline\">Installation and configuration on the Debian server<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>These following sections show the necessary configuration steps on the Debian server to get the Samba Server up and running.\u00a0Then the created share can be mounted via a Linux-based or Windows-based client.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Installation_of_the_Samba_service\"><\/span><span id=\"Installation_des_Samba_Dienstes\" class=\"mw-headline\">Installation of the Samba service<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The\u00a0installation of the Samba service\u00a0and basic\u00a0configuration\u00a0is similar to the article\u00a0Simple Samba release under Debian\u00a0.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"User-limited_configuration\"><\/span><span id=\"Benutzereingeschr.C3.A4nkte_Konfiguration\" class=\"mw-headline\">User-limited configuration<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>This configuration example now shows how to make an\u00a0<b>SMB share with authentication<\/b>\u00a0.\u00a0For this, a user\u00a0<i>smbuser is created<\/i>\u00a0on the Debian system and\u00a0a share entry\u00a0<i>restricted is<\/i>\u00a0added\u00a0to the configuration file\u00a0<i>smb.conf<\/i>\u00a0.<i><\/i><\/p>\n<ol>\n<li>Creating SMB users, further information can be found in the Wiki article\u00a0Samba-Server Security\u00a0in the\u00a0User\u00a0Access\u00a0section\u00a0.\n<dl>\n<dd>\n<div class=\"mw-highlight mw-content-ltr\" dir=\"ltr\">\n<pre>$ sudo useradd -s \/ bin \/ false smbuser\r\n<\/pre>\n<\/div>\n<\/dd>\n<\/dl>\n<\/li>\n<li>Set password\n<dl>\n<dd>\n<div class=\"mw-highlight mw-content-ltr\" dir=\"ltr\">\n<pre>$ sudo smbpasswd -a smbuser\r\n<\/pre>\n<\/div>\n<\/dd>\n<\/dl>\n<\/li>\n<li>Entry in the file\u00a0<i>smb.conf<\/i>\u00a0:<\/li>\n<\/ol>\n<pre>[global]\r\nworkgroup = smb\r\nsecurity = user\r\nmap to guest = never\r\n\r\n[Homes]\r\ncomment = Home Directories\r\nbrowsable = no\r\nread only = no\r\ncreate mode = 0750\r\n\r\n[Restricted]\r\nvalid users = smbuser\r\n# We restrict access to the user '' smbuser ''\r\n#valid users = @smbusers\r\n#Alternative can also be restricted to a user group\r\npath = \/ media \/ storage2 \/\r\npublic = no\r\nwritable = yes\r\ncomment = smb restricted share\r\nprintable = no\r\nguest ok = no\r\ncreate mask = 0600\r\ndirectory mask = 0700\r\n<\/pre>\n<p>This configuration uses the sample mountpoint\u00a0<i>\/ media \/ storage2<\/i>\u00a0.\u00a0To restrict access to the share as much as possible, this mountpoint\u00a0<i>\/ media \/ storage2 is<\/i>assigned to the user\u00a0<i>smbuser<\/i>\u00a0and provided with the directory rights 700 so that only this user (and of course root) receives read and write access.<\/p>\n<dl>\n<dd>\n<div class=\"mw-highlight mw-content-ltr\" dir=\"ltr\">\n<pre>$ sudo chown -R smbuser: smbuser \/ media \/ storage2\r\n<\/pre>\n<\/div>\n<\/dd>\n<dd>\n<div class=\"mw-highlight mw-content-ltr\" dir=\"ltr\">\n<pre>$ sudo chmod <span class=\"m\">700<\/span> \/ media \/ storage2\r\n<\/pre>\n<\/div>\n<\/dd>\n<\/dl>\n<h3><span class=\"ez-toc-section\" id=\"Restart_of_Samba\"><\/span><span id=\"Neustart_von_Samba\" class=\"mw-headline\">Restart of Samba<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>For the configuration to take effect, you must restart the Samba service.\u00a0This is done on Debian 8 with\u00a0<i>systemd<\/i>\u00a0.<\/p>\n<dl>\n<dd>\n<div class=\"mw-highlight mw-content-ltr\" dir=\"ltr\">\n<pre>$ sudo systemctl restart smbd.service\r\n<\/pre>\n<\/div>\n<\/dd>\n<\/dl>\n<h2><span class=\"ez-toc-section\" id=\"Mount_the_shares\"><\/span><span id=\"Mounten_der_Freigaben\" class=\"mw-headline\">Mount the shares<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now that the Samba server has been completely configured and restarted, the created share can now be used by clients.\u00a0This is explained using an Ubuntu 16.04 and a Windows 10 client in the following sections.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"On_a_Linux_based_client\"><\/span><span id=\"An_einem_Linux-basierten_Client\" class=\"mw-headline\">On a Linux based client<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>All current Debian-based Linux distributions use the\u00a0<b>cifs-utils<\/b>\u00a0package\u00a0.\u00a0Until\u00a0Ubuntu\u00a012.04\u00a0including\u00a0the old package\u00a0<b>smbfs<\/b>\u00a0could be used.<sup id=\"cite_ref-1\" class=\"reference\"><\/sup><\/p>\n<dl>\n<dd>\n<div class=\"mw-highlight mw-content-ltr\" dir=\"ltr\">\n<pre>$ apt-get install cifs-utils\r\n<\/pre>\n<\/div>\n<\/dd>\n<\/dl>\n<p>The Samba user\u00a0<i>smbuser<\/i>\u00a0configured on the Debian system is\u00a0used and the password is queried.<\/p>\n<pre>$ sudo mount -t cifs \/\/ &lt;IP-of-Samba-Server&gt; \/ restricted \/ media \/ tniedermeier \/ test -o user = smbuser\r\nPassword for smbuser @ \/\/ &lt;IP-the-Samba-Server&gt; \/ restricted: ********\r\n<\/pre>\n<p>For more information about mounted shares, use the\u00a0<i>mount<\/i>\u00a0terminal call\u00a0.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"On_a_Windows_10_client\"><\/span><span id=\"An_einem_Windows_10_Client\" class=\"mw-headline\">On a Windows 10 client<\/span><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The share can be connected to a Windows 10 client as explained in the following section.\u00a0There are several ways to connect.<\/p>\n<p>From the command prompt you can connect the network drive with the following command:<sup id=\"cite_ref-2\" class=\"reference\"><\/sup><\/p>\n<dl>\n<dd><code>C:\\Users\\tniedermeier&gt;net use &lt;Laufwerksbuchstabe&gt;: \\\\&lt;IP-des-Samba-Servers&gt;\\restricted \/user:smbuser &lt;Passwort&gt;<\/code><\/dd>\n<\/dl>\n<p>Alternatively, you can connect the network drive through the explorer as explained in the following steps:<\/p>\n<ul class=\"gallery mw-gallery-traditional\">\n<li class=\"gallerybox\">\n<div class=\"thumb\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1347\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/attachment\/1-32\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/1.png?fit=800%2C568&amp;ssl=1\" data-orig-size=\"800,568\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/1.png?fit=750%2C533&amp;ssl=1\" class=\"alignnone  wp-image-1347\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2018\/02\/1-300x213.png?resize=387%2C275&#038;ssl=1\" alt=\"\" width=\"387\" height=\"275\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/1.png?resize=300%2C213&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/1.png?resize=768%2C545&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/1.png?w=800&amp;ssl=1 800w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/div>\n<div class=\"gallerytext\">\n<p><b>Step 1: In<\/b>\u00a0the left menu of the Explorer, right-click on\u00a0<i>Network<\/i>\u00a0and then left-\u00a0click\u00a0on the context menu\u00a0<i>item Connect network drive<\/i>\u00a0.<\/p>\n<\/div>\n<\/li>\n<li class=\"gallerybox\">\n<div class=\"thumb\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1348\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/attachment\/2-30\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/2.png?fit=800%2C568&amp;ssl=1\" data-orig-size=\"800,568\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/2.png?fit=750%2C533&amp;ssl=1\" class=\"alignnone  wp-image-1348\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2018\/02\/2-300x213.png?resize=375%2C266&#038;ssl=1\" alt=\"\" width=\"375\" height=\"266\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/2.png?resize=300%2C213&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/2.png?resize=768%2C545&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/2.png?w=800&amp;ssl=1 800w\" sizes=\"auto, (max-width: 375px) 100vw, 375px\" \/><\/div>\n<div class=\"gallerytext\">\n<p><b>Step 2:<\/b>\u00a0Select a free drive letter and type\u00a0the path to the share\u00a0in the input line\u00a0<i>Folder<\/i>\u00a0, eg\u00a0<i>\\\\ &lt;IP-des-Samba-Server&gt; \\ restricted<\/i>\u00a0.\u00a0Then click on\u00a0<i>Finish<\/i>\u00a0.<\/p>\n<\/div>\n<\/li>\n<li class=\"gallerybox\">\n<div class=\"thumb\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1349\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/attachment\/3-27\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/3.png?fit=800%2C568&amp;ssl=1\" data-orig-size=\"800,568\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"3\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/3.png?fit=750%2C533&amp;ssl=1\" class=\"alignnone  wp-image-1349\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2018\/02\/3-300x213.png?resize=385%2C273&#038;ssl=1\" alt=\"\" width=\"385\" height=\"273\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/3.png?resize=300%2C213&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/3.png?resize=768%2C545&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/3.png?w=800&amp;ssl=1 800w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/div>\n<div class=\"gallerytext\">\n<p>The network drive has been successfully connected.\u00a0Its content is now displayed in Explorer.<\/p>\n<\/div>\n<\/li>\n<li class=\"gallerybox\">\n<div class=\"thumb\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"1350\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/attachment\/4-25\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/4.png?fit=800%2C600&amp;ssl=1\" data-orig-size=\"800,600\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"4\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/4.png?fit=750%2C563&amp;ssl=1\" class=\"alignnone  wp-image-1350\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2018\/02\/4-300x225.png?resize=385%2C289&#038;ssl=1\" alt=\"\" width=\"385\" height=\"289\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/4.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/4.png?resize=768%2C576&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/4.png?w=800&amp;ssl=1 800w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/div>\n<div class=\"gallerytext\">\n<p>The newly connected network drive\u00a0<i>restricted<\/i>is now also displayed in the left-hand menu of the Explorer.<\/p>\n<\/div>\n<\/li>\n<\/ul>\n<p>If you want to access the share without assigning it a drive letter, you can simply type in the network path directly in Explorer in the entry line:<\/p>\n<dl>\n<dd><code>\\\\&lt;IP-des-Samba-Servers&gt;\\restricted<\/code><\/dd>\n<\/dl>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Complementing a simple Samba release, this article shows how to\u00a0create a username and password based Samba share\u00a0using a\u00a0Debian\u00a08 based system.\u00a0Ubuntu\u00a016.04 and Windows 10 are used\u00a0as client software for testing the connection\u00a0. &nbsp; Installation and configuration on the Debian server These following sections show the necessary configuration steps on the Debian<\/p>\n","protected":false},"author":4,"featured_media":1351,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3],"tags":[],"class_list":["post-1345","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial-how-to"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2018\/02\/Samba-Schema.gif?fit=450%2C300&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ISfL-lH","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1216,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-server-basics\/","url_meta":{"origin":1345,"position":0},"title":"Samba server basics","author":"Shreyash Sharma","date":"October 31, 2017","format":false,"excerpt":"A\u00a0Samba server\u00a0supports the integration of\u00a0Windows and Unix \/ Linux computers\u00a0.\u00a0For example,\u00a0files can be\u00a0exchanged or\u00a0printers can be\u00a0shared.\u00a0The name Samba originates from the\u00a0Server Message Block\u00a0(SMB) protocol\u00a0, which is used in Windows for network-based data exchange.\u00a0Currently, instead of SMB again and again from the \"\u00a0Common Internet File System\u00a0\" (CIFS) spoken.\u00a0CIFS is an evolution\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/samba-6.jpg?fit=804%2C541&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/samba-6.jpg?fit=804%2C541&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/samba-6.jpg?fit=804%2C541&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/samba-6.jpg?fit=804%2C541&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1198,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/do-not-start-samba-automatically-on-ubuntu\/","url_meta":{"origin":1345,"position":1},"title":"Do not start Samba automatically on Ubuntu","author":"Shreyash Sharma","date":"October 27, 2017","format":false,"excerpt":"Samba - the server service for providing Windows file and print sharing - automatically launches after each Ubuntu 10.10 installation.\u00a0However, if you need the Samba Server on your Ubuntu Desktop system only sporadically, you can\u00a0disable\u00a0the\u00a0automatic startup of Samba\u00a0. Upstart configuration Samba starts in Ubuntu 10.10 via Upstart when booting the\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/sambahero.jpg?fit=770%2C602&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/sambahero.jpg?fit=770%2C602&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/sambahero.jpg?fit=770%2C602&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/sambahero.jpg?fit=770%2C602&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1246,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/set-up-password-authentication-with-active-directory-under-debian\/","url_meta":{"origin":1345,"position":2},"title":"Set up password authentication with Active Directory under Debian","author":"Daniel Draga","date":"November 6, 2017","format":false,"excerpt":"Centralized directory services such as OpenLDAP or Active Directory (AD) simplify\u00a0password management\u00a0for the administrator and the user.\u00a0In terms of Linux servers, the aspect of SSH\u00a0authentication\u00a0via AD\u00a0is especially\u00a0interesting.\u00a0From the point of view of IT security, this solution is also advantageous: Administrators no longer need to choose and manage different passwords for\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/11\/password-wide.jpeg?fit=623%2C425&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/11\/password-wide.jpeg?fit=623%2C425&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/11\/password-wide.jpeg?fit=623%2C425&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1219,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-server-security\/","url_meta":{"origin":1345,"position":3},"title":"Samba server security","author":"Shreyash Sharma","date":"October 31, 2017","format":false,"excerpt":"This article gives an\u00a0overview\u00a0of the possibilities of some\u00a0security settings of\u00a0a Samba server.\u00a0With regard to security, of course, there are always different options, some of which lead to the same goal.\u00a0This article shows those configuration parameters that can sometimes be used to take simple but effective security measures.\u00a0The settings were all\u00a0tested\u00a0on\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1152,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/set-up-the-ftp-server-under-debian\/","url_meta":{"origin":1345,"position":4},"title":"Set up the FTP server under Debian","author":"Shreyash Sharma","date":"October 23, 2017","format":false,"excerpt":"ProFTPD\u00a0is a widely-used, well-configurable FTP server for UNIX-based operating systems.\u00a0This article shows the\u00a0installation and configuration of ProFTPD\u00a0in version 1.3.5b-4 on\u00a0Debian\u00a0Linux.\u00a0In the example shown, a TLS encryption is configured on the FTP server to encrypt the communication between the FTP client (eg FileZilla) and the FTP server ProFTPD.\u00a0Debian Stretch 9 was\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/unnamed.png?fit=300%2C300&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1149,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/ssh-login-under-debian-with-fail2ban\/","url_meta":{"origin":1345,"position":5},"title":"SSH Login under Debian with fail2ban","author":"Shreyash Sharma","date":"October 22, 2017","format":false,"excerpt":"The tool\u00a0fail2ban\u00a0,\u00a0written in Python,\u00a0aims to secure server services against DoS attacks.\u00a0It checks log files for predefined patterns and temporarily blocks the corresponding IP addresses if the failed access is repeated.\u00a0This article shows you how to back up a Debian-based server with fail2ban.\u00a0The deployed version of fail2ban is\u00a00.9.6-2\u00a0under\u00a0Debian 9.1\u00a0. Problem In\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/10\/fail2ban-logo2.png?fit=459%2C441&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/comments?post=1345"}],"version-history":[{"count":3,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1345\/revisions"}],"predecessor-version":[{"id":1707,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1345\/revisions\/1707"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media\/1351"}],"wp:attachment":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media?parent=1345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/categories?post=1345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/tags?post=1345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}