{"id":973,"date":"2025-01-06T21:31:54","date_gmt":"2025-01-06T18:31:54","guid":{"rendered":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/"},"modified":"2025-01-06T21:31:54","modified_gmt":"2025-01-06T18:31:54","slug":"best-practices-for-securing-samba-shares-on-linux-servers","status":"publish","type":"post","link":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/","title":{"rendered":"Best Practices for Securing Samba Shares on Linux Servers"},"content":{"rendered":"<p><br \/>\n<\/p>\n<p>Samba is a robust service that allows seamless integration between Linux and Windows environments, enabling file and printer sharing across different operating systems. However, with its powerful capabilities comes the responsibility of securing these services to prevent unauthorized access and data breaches. In this article, we will explore best practices for securing Samba shares on Linux servers.<\/p>\n<p><\/p>\n<h3>1. Install and Configure Samba Securely<\/h3>\n<p><\/p>\n<p>Before diving into the various security practices, ensure that you have Samba installed and configured. Use the latest stable version to benefit from improvements and security patches. <\/p>\n<p><\/p>\n<p>To install Samba, use:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">sudo apt update<br \/>\nsudo apt install samba<\/code><\/pre>\n<p><\/p>\n<h3>2. Use Strong User Authentication<\/h3>\n<p><\/p>\n<p><strong>Create Samba users and set strong passwords:<\/strong><\/p>\n<p><\/p>\n<p>Instead of using system users, create Samba-specific users:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">sudo smbpasswd -a username<\/code><\/pre>\n<p><\/p>\n<p>Ensure that users have strong, complex passwords that include a mix of letters, numbers, and special characters. Regularly change passwords to reinforce security.<\/p>\n<p><\/p>\n<h3>3. Restrict Access with Proper Permissions<\/h3>\n<p><\/p>\n<p><strong>Set appropriate directory and file permissions:<\/strong><\/p>\n<p><\/p>\n<p>Samba shares don&#8217;t directly override Unix file permissions. Ensure proper permissions are set on the filesystem. For example:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">sudo chown -R username:group \/path\/to\/shared\/directory<br \/>\nsudo chmod -R 770 \/path\/to\/shared\/directory<\/code><\/pre>\n<p><\/p>\n<p>This ensures only the user and group have read, write, and execute permissions.<\/p>\n<p><\/p>\n<h3>4. Configure Samba Share Settings<\/h3>\n<p><\/p>\n<p><strong>Edit the Samba configuration file:<\/strong><\/p>\n<p><\/p>\n<p>Open <code>\/etc\/samba\/smb.conf<\/code> with a text editor and add your shares with the right options:<\/p>\n<p><\/p>\n<pre><code class=\"language-conf\">[shared]<br \/>\n   path = \/path\/to\/shared\/directory<br \/>\n   valid users = username<br \/>\n   read only = no<br \/>\n   browsable = yes<br \/>\n   create mask = 0770<br \/>\n   directory mask = 0770<\/code><\/pre>\n<p><\/p>\n<p>Key options to include:<\/p>\n<p><\/p>\n<ul><\/p>\n<li><code>valid users<\/code>: Define which users are permitted access.<\/li>\n<p><\/p>\n<li><code>read only<\/code>: Set to <code>no<\/code> if write access is required.<\/li>\n<p><\/p>\n<li><code>create mask<\/code> &amp; <code>directory mask<\/code>: Control default permissions for new files and directories.<\/li>\n<p>\n<\/ul>\n<p><\/p>\n<h3>5. Limit Network Access to Samba Shares<\/h3>\n<p><\/p>\n<p><strong>Restrict network access:<\/strong> <\/p>\n<p><\/p>\n<p>You should limit access to Samba shares by IP address or subnet. In your <code>smb.conf<\/code>, use the <code>hosts allow<\/code> and <code>hosts deny<\/code> settings. For example:<\/p>\n<p><\/p>\n<pre><code class=\"language-conf\">[global]<br \/>\n   hosts allow = 192.168.1. 127.0.0.1<br \/>\n   hosts deny = ALL<\/code><\/pre>\n<p><\/p>\n<p>This configuration allows only devices from the <code>192.168.1.*<\/code> subnet and localhost to access Samba shares.<\/p>\n<p><\/p>\n<h3>6. Use Firewall Rules<\/h3>\n<p><\/p>\n<p><strong>Configure your firewall:<\/strong><\/p>\n<p><\/p>\n<p>Use <code>iptables<\/code> or <code>ufw<\/code> to manage traffic to Samba ports (137, 138, 139, 445). For <code>ufw<\/code>, the commands would be:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">sudo ufw allow from 192.168.1.0\/24 to any port 137<br \/>\nsudo ufw allow from 192.168.1.0\/24 to any port 138<br \/>\nsudo ufw allow from 192.168.1.0\/24 to any port 139<br \/>\nsudo ufw allow from 192.168.1.0\/24 to any port 445<\/code><\/pre>\n<p><\/p>\n<p>Adjust the IP range according to your network setup.<\/p>\n<p><\/p>\n<h3>7. Enable Samba Logging<\/h3>\n<p><\/p>\n<p><strong>Monitor access and errors:<\/strong><\/p>\n<p><\/p>\n<p>Enable logging in Samba by modifying your <code>smb.conf<\/code>:<\/p>\n<p><\/p>\n<pre><code class=\"language-conf\">[global]<br \/>\n   log level = 2<br \/>\n   log file = \/var\/log\/samba\/%m.log<br \/>\n   max log size = 50<\/code><\/pre>\n<p><\/p>\n<p>Logs are crucial for troubleshooting and auditing access. Regularly review logs for any unauthorized access attempts.<\/p>\n<p><\/p>\n<h3>8. Keep Samba Updated<\/h3>\n<p><\/p>\n<p><strong>Regularly update Samba:<\/strong><\/p>\n<p><\/p>\n<p>Ensure your system and Samba installation are always up to date with security patches. Use cron jobs to automate checks for system updates, or regularly run:<\/p>\n<p><\/p>\n<pre><code class=\"language-bash\">sudo apt update<br \/>\nsudo apt upgrade<\/code><\/pre>\n<p><\/p>\n<h3>9. Implement Encryption<\/h3>\n<p><\/p>\n<p><strong>Consider using encryption:<\/strong><\/p>\n<p><\/p>\n<p>For particularly sensitive data, consider encrypting your Samba traffic using Samba\u2019s support for encrypted connections. You can configure this in the <code>smb.conf<\/code> file:<\/p>\n<p><\/p>\n<pre><code class=\"language-conf\">[global]<br \/>\n   smb encrypt = required<\/code><\/pre>\n<p><\/p>\n<p>This ensures all data in transit is encrypted, adding an extra layer of security.<\/p>\n<p><\/p>\n<h3>10. Regular Backups<\/h3>\n<p><\/p>\n<p><strong>Backup your Samba shares:<\/strong><\/p>\n<p><\/p>\n<p>Regularly back up data stored on Samba shares. Use tools like <code>rsync<\/code> to create backups that you can restore in case of a data breach or corruption.<\/p>\n<p><\/p>\n<h3>Conclusion<\/h3>\n<p><\/p>\n<p>Securing Samba shares on Linux servers is vital for protecting sensitive data. By following these best practices, you will significantly reduce the risk of unauthorized access and keep your files safe from potential threats. Employ a proactive approach to security\u2014review configurations regularly, stay informed about potential vulnerabilities, and always be prepared with backups. By being diligent, you can harness Samba&#8217;s powerful features while maintaining the integrity and security of your data. <\/p>\n<p><\/p>\n<p>For more insights on Linux administration and security, stay tuned to WafaTech Blog.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Samba is a robust service that allows seamless integration between Linux and Windows environments, enabling file and printer sharing across different operating systems. However, with its powerful capabilities comes the responsibility of securing these services to prevent unauthorized access and data breaches. In this article, we will explore best practices for securing Samba shares on [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":974,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[22],"tags":[265,237,641,264,302,642],"class_list":["post-973","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-security","tag-linux","tag-practices","tag-samba","tag-securing","tag-servers","tag-shares","et-has-post-format-content","et_post_format-et-post-format-standard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.5 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Best Practices for Securing Samba Shares on Linux Servers - WafaTech Blogs<\/title>\n<meta name=\"description\" content=\"Best Practices for Securing Samba Shares on Linux Servers %\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Best Practices for Securing Samba Shares on Linux Servers\" \/>\n<meta property=\"og:description\" content=\"Best Practices for Securing Samba Shares on Linux Servers %\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/\" \/>\n<meta property=\"og:site_name\" content=\"WafaTech Blogs\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-06T18:31:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2221\" \/>\n\t<meta property=\"og:image:height\" content=\"482\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"WafaTech SA\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wafatech_sa\" \/>\n<meta name=\"twitter:site\" content=\"@wafatech_sa\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"WafaTech SA\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/\"},\"author\":{\"name\":\"WafaTech SA\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/person\\\/1a5761fc0feb63ab59d295d7c2648f06\"},\"headline\":\"Best Practices for Securing Samba Shares on Linux Servers\",\"datePublished\":\"2025-01-06T18:31:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/\"},\"wordCount\":531,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/Best-Practices-for-Securing-Samba-Shares-on-Linux-Servers.png\",\"keywords\":[\"Linux\",\"Practices\",\"Samba\",\"Securing\",\"Servers\",\"Shares\"],\"articleSection\":[\"Linux Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/\",\"name\":\"Best Practices for Securing Samba Shares on Linux Servers - WafaTech Blogs\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/Best-Practices-for-Securing-Samba-Shares-on-Linux-Servers.png\",\"datePublished\":\"2025-01-06T18:31:54+00:00\",\"description\":\"Best Practices for Securing Samba Shares on Linux Servers %\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/Best-Practices-for-Securing-Samba-Shares-on-Linux-Servers.png\",\"contentUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/Best-Practices-for-Securing-Samba-Shares-on-Linux-Servers.png\",\"width\":1024,\"height\":1024,\"caption\":\"linux server securing Samba shares\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/best-practices-for-securing-samba-shares-on-linux-servers\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Best Practices for Securing Samba Shares on Linux Servers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\",\"name\":\"WafaTech Blogs\",\"description\":\"Smart Technologies\",\"publisher\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\"},\"alternateName\":\"WafaTech\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\",\"name\":\"WafaTech Blogs\",\"alternateName\":\"WafaTech\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/logo_big.webp\",\"contentUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/logo_big.webp\",\"width\":2221,\"height\":482,\"caption\":\"WafaTech Blogs\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/people\\\/WafaTech\\\/61560546351289\\\/\",\"https:\\\/\\\/x.com\\\/wafatech_sa\",\"https:\\\/\\\/www.youtube.com\\\/@wafatech-sa\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wafatech\\\/\"],\"description\":\"WafaTech, a leading Saudi IT services provider, specializes in cloud solutions, connectivity, and ICT services. Offering secure cloud infrastructure, high-speed internet, and ICT solutions like hosting, backup, and disaster recovery, WafaTech operates a Tier 3 data center at KAUST with ISO certifications. Regulated by CST, the company is committed to innovation, security, and customer satisfaction, empowering businesses in the digital age.\",\"email\":\"sales@wafatech.sa\",\"legalName\":\"Al-Wafa Al-Dhakia For Information Technology LLC\",\"foundingDate\":\"2013-01-08\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/person\\\/1a5761fc0feb63ab59d295d7c2648f06\",\"name\":\"WafaTech SA\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"caption\":\"WafaTech SA\"},\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/author\\\/omer-yaseen\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Best Practices for Securing Samba Shares on Linux Servers - WafaTech Blogs","description":"Best Practices for Securing Samba Shares on Linux Servers %","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/","og_locale":"en_US","og_type":"article","og_title":"Best Practices for Securing Samba Shares on Linux Servers","og_description":"Best Practices for Securing Samba Shares on Linux Servers %","og_url":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/","og_site_name":"WafaTech Blogs","article_publisher":"https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/","article_published_time":"2025-01-06T18:31:54+00:00","og_image":[{"width":2221,"height":482,"url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp","type":"image\/webp"}],"author":"WafaTech SA","twitter_card":"summary_large_image","twitter_creator":"@wafatech_sa","twitter_site":"@wafatech_sa","twitter_misc":{"Written by":"WafaTech SA","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/#article","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/"},"author":{"name":"WafaTech SA","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/person\/1a5761fc0feb63ab59d295d7c2648f06"},"headline":"Best Practices for Securing Samba Shares on Linux Servers","datePublished":"2025-01-06T18:31:54+00:00","mainEntityOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/"},"wordCount":531,"commentCount":0,"publisher":{"@id":"https:\/\/wafatech.sa\/blog\/#organization"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/01\/Best-Practices-for-Securing-Samba-Shares-on-Linux-Servers.png","keywords":["Linux","Practices","Samba","Securing","Servers","Shares"],"articleSection":["Linux Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/","url":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/","name":"Best Practices for Securing Samba Shares on Linux Servers - WafaTech Blogs","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/#primaryimage"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/01\/Best-Practices-for-Securing-Samba-Shares-on-Linux-Servers.png","datePublished":"2025-01-06T18:31:54+00:00","description":"Best Practices for Securing Samba Shares on Linux Servers %","breadcrumb":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/#primaryimage","url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/01\/Best-Practices-for-Securing-Samba-Shares-on-Linux-Servers.png","contentUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/01\/Best-Practices-for-Securing-Samba-Shares-on-Linux-Servers.png","width":1024,"height":1024,"caption":"linux server securing Samba shares"},{"@type":"BreadcrumbList","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/best-practices-for-securing-samba-shares-on-linux-servers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wafatech.sa\/blog\/"},{"@type":"ListItem","position":2,"name":"Best Practices for Securing Samba Shares on Linux Servers"}]},{"@type":"WebSite","@id":"https:\/\/wafatech.sa\/blog\/#website","url":"https:\/\/wafatech.sa\/blog\/","name":"WafaTech Blogs","description":"Smart Technologies","publisher":{"@id":"https:\/\/wafatech.sa\/blog\/#organization"},"alternateName":"WafaTech","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wafatech.sa\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wafatech.sa\/blog\/#organization","name":"WafaTech Blogs","alternateName":"WafaTech","url":"https:\/\/wafatech.sa\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp","contentUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp","width":2221,"height":482,"caption":"WafaTech Blogs"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/","https:\/\/x.com\/wafatech_sa","https:\/\/www.youtube.com\/@wafatech-sa","https:\/\/www.linkedin.com\/company\/wafatech\/"],"description":"WafaTech, a leading Saudi IT services provider, specializes in cloud solutions, connectivity, and ICT services. Offering secure cloud infrastructure, high-speed internet, and ICT solutions like hosting, backup, and disaster recovery, WafaTech operates a Tier 3 data center at KAUST with ISO certifications. Regulated by CST, the company is committed to innovation, security, and customer satisfaction, empowering businesses in the digital age.","email":"sales@wafatech.sa","legalName":"Al-Wafa Al-Dhakia For Information Technology LLC","foundingDate":"2013-01-08","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/person\/1a5761fc0feb63ab59d295d7c2648f06","name":"WafaTech SA","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","caption":"WafaTech SA"},"url":"https:\/\/wafatech.sa\/blog\/author\/omer-yaseen\/"}]}},"jetpack_featured_media_url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/01\/Best-Practices-for-Securing-Samba-Shares-on-Linux-Servers.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/comments?post=973"}],"version-history":[{"count":0,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/973\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media\/974"}],"wp:attachment":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media?parent=973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/categories?post=973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/tags?post=973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}