{"id":12989,"date":"2018-02-07T10:14:51","date_gmt":"2018-02-07T10:14:51","guid":{"rendered":"https:\/\/www.process.st\/templates\/linux-samba-file-server-setup-checklist\/"},"modified":"2024-02-28T20:46:22","modified_gmt":"2024-02-28T20:46:22","slug":"linux-samba-file-server-setup-checklist","status":"publish","type":"post","link":"https:\/\/www.process.st\/templates\/linux-samba-file-server-setup-checklist\/","title":{"rendered":"Linux Samba File Server Setup Checklist"},"content":{"rendered":"<section id=\"introduction\">\n<h2>Introduction:<\/h2>\n<div class=\"image-content\">\n<figure><a href=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/ss3DGZAL8YJmyyUHMmNFmg.png\" target=\"_blank\" rel=\"noopener\"> <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/ss3DGZAL8YJmyyUHMmNFmg.png\" \/> <\/a><\/figure>\n<\/div>\n<div class=\"text-content\">\n<p>While the back end of an office might be pure Linux, the machines that see daily use by employees probably aren't. Without a file server, it's difficult to make Linux and Windows computers share files nicely.<\/p>\n<p>he solution is to install <a href=\"https:\/\/www.samba.org\/\" target=\"_blank\" rel=\"nofollow noopener\">Samba<\/a> on a server, and store the files that should be shared on that server, in a shared folder. These files can be added to or updated by connecting to the server with SSH, FTP, or (once set up) directly through Samba.<\/p>\n<p>We'll go through SSH in this guide but to use FTP in the future see <a href=\"https:\/\/www.process.st\/templates\/linux-ftp-server-setup-checklist\/\" target=\"_blank\" rel=\"nofollow noopener\">this guide<\/a> to setting up an FTP server.<\/p>\n<p>Samba was created in 1992 and released under the GNU license. It has remained an important part of seamlessly integrating computers ever since.<\/p>\n<p>When the server is set up, you'll see your Samba server files on any authorized machine on the network, like this:<\/p>\n<\/div>\n<div class=\"image-content\">\n<figure><a href=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/vONO2JkfFm0dTo2rnaVPJA.png\" target=\"_blank\" rel=\"noopener\"> <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/vONO2JkfFm0dTo2rnaVPJA.png\" \/> <\/a><\/figure>\n<\/div>\n<\/section>\n<section id=\"establish-ssh-connection-with-the-server\">\n<h2>Establish SSH connection with the server<\/h2>\n<div class=\"text-content\">\n<p>In this checklist, you're going to control the server remotely through an SSH connection.<\/p>\n<p>Input your server's IP and root username below \u2014 we're going to autofill it throughout the checklist.<\/p>\n<\/div>\n<div class=\"text-field-content form-field-content\">\n<div class=\"form-group\"><label> Server IP <\/label><br \/>\n<input class=\"form-control\" disabled=\"disabled\" type=\"text\" placeholder=\"Something will be typed here...\" \/><\/div>\n<\/div>\n<div class=\"text-field-content form-field-content\">\n<div class=\"form-group\"><label> Server root username <\/label><br \/>\n<input class=\"form-control\" disabled=\"disabled\" type=\"text\" placeholder=\"Something will be typed here...\" \/><\/div>\n<\/div>\n<div class=\"text-content\">\n<p>In a remote terminal:<\/p>\n<pre>$ ssh {{form.Server_root_username}}@{{form.Server_IP}}<\/pre>\n<p>This will prompt you for the root password, and then establish an SSH connection:<\/p>\n<\/div>\n<div class=\"image-content\">\n<figure><a href=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/n93jIXbacGrKEz55CutMpw.png\" target=\"_blank\" rel=\"noopener\"> <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/n93jIXbacGrKEz55CutMpw.png\" \/> <\/a><\/figure>\n<\/div>\n<\/section>\n<section id=\"install-samba\">\n<h2>Install Samba<\/h2>\n<div class=\"text-content\">\n<p>Before installing any packages on the server, you should run:<\/p>\n<pre>$ sudo apt-get update\n\n$ sudo apt-get upgrade<\/pre>\n<p>This will refresh the package list, and then install any updates necessary.<\/p>\n<p>After that's complete, install Samba:<\/p>\n<pre>$ sudo apt-get install samba samba-common-bin<\/pre>\n<\/div>\n<\/section>\n<section id=\"create-a-shared-folder\">\n<h2>Create a shared folder<\/h2>\n<div class=\"text-content\">\n<p>You don't want to share everything by default, so make a new shared folder where you can put everything you want to be accessible over the network.<\/p>\n<pre>$ sudo mkdir -m 1777 \/share<\/pre>\n<p>This creates a directory called 'share' in root.<\/p>\n<hr \/>\n<p class=\"style-warning\">If you already have a share folder, then you'll instead need to update its permissions:<\/p>\n<pre>$ <code>sudo chmod -R 1777 \/share<\/code><\/pre>\n<\/div>\n<\/section>\n<section id=\"edit-samba-configuration-file\">\n<h2>Edit Samba configuration file<\/h2>\n<div class=\"text-content\">\n<p>Open the Samba configuration file with nano:<\/p>\n<pre>$ sudo nano \/etc\/samba\/smb.conf<\/pre>\n<p>Append this block at the bottom of the file:<\/p>\n<pre>[share]\nComment = shared folder\nPath = \/share\nBrowseable = yes\nWriteable = Yes\nonly guest = no\ncreate mask = 0777\ndirectory mask = 0777\nPublic = yes\nGuest ok = yes<\/pre>\n<p>Press CTRL+O, then enter, and CTRL+X to save and quit.<\/p>\n<\/div>\n<\/section>\n<section id=\"set-a-password\">\n<h2>Set a password<\/h2>\n<div class=\"text-content\">\n<p>Generate a strong password by getting the output of this openssl rand function command (replace 14 with the number of characters to output):<\/p>\n<pre>$ openssl rand -base64 14<\/pre>\n<p>Copy the password to your clipboard, and then:<\/p>\n<pre>$ sudo smbpasswd -a\u00a0{{form.Server_root_username}}<\/pre>\n<p>Save your server's password in a password manager.<\/p>\n<\/div>\n<\/section>\n<section id=\"restart-the-server\">\n<h2>Restart the server<\/h2>\n<div class=\"text-content\">\n<p>Restart the server to apply the changes you made to the configuration file:<\/p>\n<pre>$ sudo \/etc\/init.d\/samba restart<\/pre>\n<\/div>\n<div class=\"image-content\">\n<figure><a href=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/sHJkMclrAbFTMlClnjNOLQ.png\" target=\"_blank\" rel=\"noopener\"> <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/sHJkMclrAbFTMlClnjNOLQ.png\" \/> <\/a><\/figure>\n<\/div>\n<\/section>\n<section id=\"test-access\">\n<h2>Test access<\/h2>\n<div class=\"text-content\">\n<h5>Accessing the file server on Windows<\/h5>\n<p>The server should be visible in the Network pane of Windows Explorer.<\/p>\n<\/div>\n<div class=\"image-content\">\n<figure><a href=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/qznUTNcgWQq_3BGcfZhEJA.png\" target=\"_blank\" rel=\"noopener\"> <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/qznUTNcgWQq_3BGcfZhEJA.png\" \/> <\/a><\/figure>\n<\/div>\n<div class=\"text-content\">\n<h5>Accessing the file server on Mac<\/h5>\n<p>Your shiny Samba server is located in the left sidebar of Finder.<\/p>\n<\/div>\n<div class=\"image-content\">\n<figure><a href=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/i_KC94FdP4fLwOZ5qs5EDg.png\" target=\"_blank\" rel=\"noopener\"> <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/i_KC94FdP4fLwOZ5qs5EDg.png\" \/> <\/a><\/figure>\n<\/div>\n<div class=\"text-content\">\n<h5>Accessing the file server on Linux<\/h5>\n<p>Similar to Windows and Mac, the server will show up under Network in the file browser.<\/p>\n<\/div>\n<div class=\"image-content\">\n<figure><a href=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/tPHgpb1FkwGuJ81iRs5Dpg.png\" target=\"_blank\" rel=\"noopener\"> <img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.process.st\/templates\/wp-content\/uploads\/2024\/02\/tPHgpb1FkwGuJ81iRs5Dpg.png\" \/> <\/a><\/figure>\n<\/div>\n<\/section>\n<section id=\"configure-user-access\">\n<h2>Configure user access<\/h2>\n<div class=\"text-content\">\n<p>The Samba config file, located at \/etc\/samba\/smb.conf, has everything you need to control directory access and user permissions for your office.<\/p>\n<p>Edit it:<\/p>\n<pre>$ sudo nano \/etc\/samba\/smb.conf<\/pre>\n<p>For example, to give the user Ben access to his own folder, you'd add this to the configuration file:<\/p>\n<pre>[ben]\n        path = \/home\/ben\n        comment = Ben's home directory\n        writable = yes\n        valid users = ben<\/pre>\n<p>To give the sales organization their own shared folder with one member as the admin, you'd add this:<\/p>\n<pre>[sales]\n        path = \/home\/sales\n        comment = Sedona Real Estate Sales Data\n        writable = yes\n        valid users = sofie shelby adilia\n        admin users = mike<\/pre>\n<p>To read more about setting up user permissions, read <a href=\"https:\/\/www.samba.org\/samba\/docs\/using_samba\/ch09.html\" target=\"_blank\" rel=\"nofollow noopener\">this doc<\/a>.<\/p>\n<\/div>\n<\/section>\n<section id=\"sources\">\n<h2>Sources:<\/h2>\n<div class=\"text-content\">\n<ul>\n<li><a href=\"https:\/\/www.samba.org\/\" target=\"_blank\" rel=\"nofollow noopener\">Samba<\/a><\/li>\n<li><a href=\"https:\/\/www.openssh.com\/\" target=\"_blank\" rel=\"nofollow noopener\">OpenSSH<\/a><\/li>\n<li><a href=\"https:\/\/www.raspberrypi.org\/magpi\" target=\"_blank\" rel=\"nofollow noopener\">MagPi<\/a> \u2014 <a href=\"https:\/\/www.raspberrypi.org\/magpi\/samba-file-server\/\" target=\"_blank\" rel=\"nofollow noopener\">Set up a Raspberry Pi as a File Server for Your Local Network<\/a><\/li>\n<li><a href=\"https:\/\/www.samba.org\" target=\"_blank\" rel=\"nofollow noopener\">Samba<\/a> \u2014 <a href=\"https:\/\/www.samba.org\/samba\/docs\/using_samba\/ch09.html\" target=\"_blank\" rel=\"nofollow noopener\">Documentation, Users and Security<\/a><\/li>\n<\/ul>\n<\/div>\n<\/section>\n<section id=\"related-checklists\">\n<h2>Related checklists:<\/h2>\n<div class=\"text-content\">\n<ul>\n<li><a href=\"https:\/\/www.process.st\/templates\/linux-proxy-server-setup-checklist\" target=\"_blank\" rel=\"nofollow noopener\">Linux Proxy Server Setup Checklist<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/linux-ftp-server-setup-checklist\" target=\"_blank\" rel=\"nofollow noopener\">Linux FTP Server Setup Checklist<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/linux-apache-server-setup-checklist\" target=\"_blank\" rel=\"nofollow noopener\">Linux Apache Server Setup Checklist<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/setup-apache-server\/\" rel=\"nofollow\">Windows Apache Server Setup<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/ubuntu-server-setup-process\/\" rel=\"nofollow\">Ubuntu Server Setup Process<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/server-maintenance-checklist\/\" rel=\"nofollow\">Server Maintenance Checklist<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/server-security-checklist\/\" rel=\"nofollow\">Server Security Checklist<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/information-security-incident-response\/\" rel=\"nofollow\">Information Security Incident Response<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/sql-server-audit-checklist\/\" rel=\"nofollow\">SQL Server Audit Checklist<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/privileged-password-management\/\" rel=\"nofollow\">Privileged Password Management<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/network-administrator-daily-tasks\/\" rel=\"nofollow\">Network Administrator Daily Tasks<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/network-security-audit-checklist\/\" rel=\"nofollow\">Network Security Audit Checklist<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/firewall-audit-checklist\/\" rel=\"nofollow\">Firewall Audit Checklist<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/vpn-configuration\/\" rel=\"nofollow\">VPN Configuration<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/email-server-security\/\" rel=\"nofollow\">Email Server Security<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/penetration-testing\/\" rel=\"nofollow\">Penetration Testing<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/cisco-router-setup\/\" rel=\"nofollow\">Cisco Router Setup<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/cisco-router-setup\/\" rel=\"nofollow\">IT Service Call Process<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/scheduled-maintenance-notification\/\" rel=\"nofollow\">Scheduled Maintenance Notification<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/patch-management\/\" rel=\"nofollow\">Patch Management<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/network-security-management\/\" rel=\"nofollow\">Network Security Management<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/client-data-backup-best-practices\/\" rel=\"nofollow\">Client Data Backup Best Practices<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/computer-maintenance-guide\/\" rel=\"nofollow\">Computer Maintenance Guide<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/inventory-management-process\" rel=\"nofollow\">Inventory Management Process<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/virtual-private-server-setup\/\" rel=\"nofollow\">Virtual Private Server Setup<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/it-support-process\/\" rel=\"nofollow\">IT Support Process<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/helpdesk-management\/\" rel=\"nofollow\">Helpdesk Management<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/server-maintenance-checklist\/\" rel=\"nofollow\">Vendor Management: Supplier Evaluation<\/a><\/li>\n<li><a href=\"https:\/\/www.process.st\/templates\/vendor-management-contract-negotiation\/\" rel=\"nofollow\">Vendor Management: Contract Negotiation<\/a><\/li>\n<\/ul>\n<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: While the back end of an office might be pure Linux, the machines that see daily use by employees probably aren't. Without a file server, it's difficult to make Linux and Windows computers share files nicely. he solution is to install Samba on a server, and store the files that should be shared on [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":12990,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"ep_exclude_from_search":false,"cover_icon_emoji":"","cover_icon_url":"","tasks_count":"11","template_description":"Easily serve files from Linux to Windows and Mac, and manage access rights.","template_id":"jKls-JEHiX5ZASnyA4VElQ","task_0":"Introduction:","task_slug_0":"introduction","task_1":"Establish SSH connection with the server","task_slug_1":"establish-ssh-connection-with-the-server","task_2":"Install Samba","task_slug_2":"install-samba","task_3":"Create a shared folder","task_slug_3":"create-a-shared-folder","task_4":"Edit Samba configuration file","task_slug_4":"edit-samba-configuration-file","task_5":"Set a password","task_slug_5":"set-a-password","task_6":"Restart the server","task_slug_6":"restart-the-server","task_7":"Test access","task_slug_7":"test-access","task_8":"Configure user access","task_slug_8":"configure-user-access","task_9":"Sources:","task_slug_9":"sources","task_10":"Related checklists:","task_slug_10":"related-checklists","task_11":"","task_slug_11":"","task_12":"","task_slug_12":"","task_13":"","task_slug_13":"","task_14":"","task_slug_14":"","task_15":"","task_slug_15":"","task_16":"","task_slug_16":"","task_17":"","task_slug_17":"","task_18":"","task_slug_18":"","task_19":"","task_slug_19":"","task_20":"","task_slug_20":"","task_21":"","task_slug_21":"","task_22":"","task_slug_22":"","task_23":"","task_slug_23":"","task_24":"","task_slug_24":"","task_25":"","task_slug_25":"","task_26":"","task_slug_26":"","task_27":"","task_slug_27":"","task_28":"","task_slug_28":"","task_29":"","task_slug_29":"","task_30":"","task_slug_30":"","task_31":"","task_slug_31":"","task_32":"","task_slug_32":"","task_33":"","task_slug_33":"","task_34":"","task_slug_34":"","task_35":"","task_slug_35":"","task_36":"","task_slug_36":"","task_37":"","task_slug_37":"","task_38":"","task_slug_38":"","task_39":"","task_slug_39":"","task_40":"","task_slug_40":"","task_41":"","task_slug_41":"","task_42":"","task_slug_42":"","task_43":"","task_slug_43":"","task_44":"","task_slug_44":"","task_45":"","task_slug_45":"","task_46":"","task_slug_46":"","task_47":"","task_slug_47":"","task_48":"","task_slug_48":"","task_49":"","task_slug_49":"","task_50":"","task_slug_50":"","task_51":"","task_slug_51":"","task_52":"","task_slug_52":"","task_53":"","task_slug_53":"","task_54":"","task_slug_54":"","task_55":"","task_slug_55":"","task_56":"","task_slug_56":"","task_57":"","task_slug_57":"","task_58":"","task_slug_58":"","task_59":"","task_slug_59":"","task_60":"","task_slug_60":"","task_61":"","task_slug_61":"","task_62":"","task_slug_62":"","task_63":"","task_slug_63":"","task_64":"","task_slug_64":"","task_65":"","task_slug_65":"","task_66":"","task_slug_66":"","task_67":"","task_slug_67":"","task_68":"","task_slug_68":"","task_69":"","task_slug_69":"","task_70":"","task_slug_70":"","task_71":"","task_slug_71":"","task_72":"","task_slug_72":"","task_73":"","task_slug_73":"","task_74":"","task_slug_74":"","task_75":"","task_slug_75":"","task_76":"","task_slug_76":"","task_77":"","task_slug_77":"","task_78":"","task_slug_78":"","task_79":"","task_slug_79":"","task_80":"","task_slug_80":"","task_81":"","task_slug_81":"","task_82":"","task_slug_82":"","task_83":"","task_slug_83":"","task_84":"","task_slug_84":"","task_85":"","task_slug_85":"","task_86":"","task_slug_86":"","task_87":"","task_slug_87":"","task_88":"","task_slug_88":"","task_89":"","task_slug_89":"","task_90":"","task_slug_90":"","task_91":"","task_slug_91":"","task_92":"","task_slug_92":"","task_93":"","task_slug_93":"","task_94":"","task_slug_94":"","task_95":"","task_slug_95":"","task_96":"","task_slug_96":"","task_97":"","task_slug_97":"","task_98":"","task_slug_98":"","task_99":"","task_slug_99":"","footnotes":""},"categories":[42,7],"tags":[],"class_list":["post-12989","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internal-audit","category-miscellaneous"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/posts\/12989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/comments?post=12989"}],"version-history":[{"count":0,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/posts\/12989\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/media\/12990"}],"wp:attachment":[{"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/media?parent=12989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/categories?post=12989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.process.st\/templates\/wp-json\/wp\/v2\/tags?post=12989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}