{"id":1198,"date":"2017-10-27T16:35:19","date_gmt":"2017-10-27T13:35:19","guid":{"rendered":"https:\/\/community.virtono.com\/?p=1198"},"modified":"2020-06-10T16:43:13","modified_gmt":"2020-06-10T13:43:13","slug":"do-not-start-samba-automatically-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/do-not-start-samba-automatically-on-ubuntu\/","title":{"rendered":"Do not start Samba automatically on Ubuntu"},"content":{"rendered":"<p>Samba &#8211; the server service for providing <a href=\"https:\/\/www.virtono.com\/windows-vps\">Windows<\/a> file and print sharing &#8211; automatically launches after each Ubuntu 10.10 installation.\u00a0However, if you need the Samba Server on your <a href=\"https:\/\/www.virtono.com\/cloud-vm\">Ubuntu Desktop system<\/a> only sporadically, you can\u00a0<b>disable<\/b>\u00a0the\u00a0<b>automatic startup of Samba<\/b>\u00a0.<\/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\/do-not-start-samba-automatically-on-ubuntu\/#Upstart_configuration\" title=\"Upstart configuration\">Upstart configuration<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/do-not-start-samba-automatically-on-ubuntu\/#Stop_automatic_starting\" title=\"Stop automatic starting\">Stop automatic starting<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Upstart_configuration\"><\/span><span id=\"Upstart_Konfiguration\" class=\"mw-headline\">Upstart configuration<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Samba starts in Ubuntu 10.10 via Upstart when booting the system.\u00a0The configuration can be found in the file\u00a0<b>\/etc\/init\/smbd.conf<\/b>\u00a0:<\/p>\n<pre>description \"SMB \/ CIFS File Server\"\r\nauthor \"Steve Langasek &lt;steve.langasek@ubuntu.com&gt;\"\r\n\r\nstart on local-filesystem\r\nstop on runlevel [! 2345]\r\n\r\nrespawn\r\n\r\npre-start script\r\n\tRUN_MODE = \"daemons\"\r\n\r\n\t[-r \/ etc \/ default \/ samba] &amp;&amp;. \/ Etc \/ default \/ samba\r\n\r\n\t[\"$ RUN_MODE\" = inetd] &amp;&amp; {stop; exit 0; }\r\n\r\n\tinstall -o root -g root -m 755 -d \/ var \/ run \/ samba\r\nend script\r\n\r\nexec smbd -F\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Stop_automatic_starting\"><\/span><span id=\"Automatisches_Starten_unterbinden\" class=\"mw-headline\">Stop automatic starting<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Samba gets through the configuration line<\/p>\n<pre>start on local-filesystem\r\n<\/pre>\n<p>So only started when the local file systems are involved.<\/p>\n<p>By commenting out this line<\/p>\n<pre># start on local-filesystem\r\n<\/pre>\n<p>prevent the automatic start of Samba and can start it normally as needed via the initscript\u00a0<b>\/etc\/init.d\/smbd start<\/b>\u00a0.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Samba &#8211; the server service for providing Windows file and print sharing &#8211; 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<\/p>\n","protected":false},"author":4,"featured_media":1199,"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-1198","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\/2017\/10\/sambahero.jpg?fit=770%2C602&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ISfL-jk","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":1216,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-server-basics\/","url_meta":{"origin":1198,"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":1345,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-sharing-with-authentication\/","url_meta":{"origin":1198,"position":1},"title":"Samba sharing with authentication","author":"Shreyash Sharma","date":"February 22, 2018","format":false,"excerpt":"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. \u00a0 Installation and configuration on the Debian server These following sections show the necessary configuration steps on the Debian\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\/2018\/02\/Samba-Schema.gif?fit=450%2C300&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1219,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/samba-server-security\/","url_meta":{"origin":1198,"position":2},"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":3247,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/install-and-configure-proxy-server-on-ubuntu-using-squid-proxy\/","url_meta":{"origin":1198,"position":3},"title":"Install and Configure Proxy Server on Ubuntu Using Squid Proxy","author":"George B.","date":"April 15, 2023","format":false,"excerpt":"In this tutorial, we will walk you through the process of installing and configuring a proxy server on Ubuntu using Squid Proxy. Are you looking for a way to improve your internet speed and security? Installing a proxy server on your Ubuntu machine using Squid Proxy can help you achieve\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\/2023\/04\/Install-and-Configure-Proxy-Server-on-Ubuntu-Using-Squid-Proxy.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Install-and-Configure-Proxy-Server-on-Ubuntu-Using-Squid-Proxy.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/Install-and-Configure-Proxy-Server-on-Ubuntu-Using-Squid-Proxy.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":1253,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/unlock-full-encrypted-system-via-ssh\/","url_meta":{"origin":1198,"position":4},"title":"Unlock full-encrypted system via SSH","author":"Daniel Draga","date":"November 9, 2017","format":false,"excerpt":"A complete encryption of your own system is an excellent way to ensure the confidentiality of your own data.\u00a0The current Ubuntu installer offers a guided installation to encrypt the entire system with \"\u00a0encrypted LVMs\u00a0\".\u00a0For both the automated installation and the manual way, there are numerous detailed guides that explain 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\/11\/dropbear-logo-walking_700_726_FFFFFF_c1.jpg?fit=700%2C726&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/11\/dropbear-logo-walking_700_726_FFFFFF_c1.jpg?fit=700%2C726&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/11\/dropbear-logo-walking_700_726_FFFFFF_c1.jpg?fit=700%2C726&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2017\/11\/dropbear-logo-walking_700_726_FFFFFF_c1.jpg?fit=700%2C726&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":3626,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-configure-a-private-docker-registry-in-ubuntu-22-04\/","url_meta":{"origin":1198,"position":5},"title":"How to Configure a Private Docker Registry in Ubuntu 22.04","author":"George B.","date":"June 26, 2023","format":false,"excerpt":"There are situations where you might want to set up your own private Docker registry even though Docker Hub offers a public registry for storing and sharing Docker images. In this guide, we'll show you how to set up a private Docker registry on Ubuntu 22.04 so you can manage\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\/2023\/06\/How-to-Configure-a-Private-Docker-Registry-in-Ubuntu-22-04.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Configure-a-Private-Docker-Registry-in-Ubuntu-22-04.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/06\/How-to-Configure-a-Private-Docker-Registry-in-Ubuntu-22-04.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1198","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=1198"}],"version-history":[{"count":2,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1198\/revisions"}],"predecessor-version":[{"id":1487,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/1198\/revisions\/1487"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media\/1199"}],"wp:attachment":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media?parent=1198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/categories?post=1198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/tags?post=1198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}