{"id":3732,"date":"2025-09-30T00:29:45","date_gmt":"2025-09-29T21:29:45","guid":{"rendered":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/"},"modified":"2025-09-30T00:29:45","modified_gmt":"2025-09-29T21:29:45","slug":"configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers","status":"publish","type":"post","link":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/","title":{"rendered":"Configuring CIFS\/SMB Access Control for Trusted Hosts on Linux Servers"},"content":{"rendered":"<p><br \/>\n<\/p>\n<p>In the era of interconnected systems, secure file sharing is crucial for organizations managing sensitive information. One of the most common file-sharing protocols used in Linux environments is CIFS (Common Internet File System), which allows clients to access files on a remote server. This article will guide you through configuring CIFS\/SMB access control for trusted hosts on your Linux server, ensuring that your shared resources are properly secured.<\/p>\n<p><\/p>\n<h2>Understanding CIFS\/SMB<\/h2>\n<p><\/p>\n<p>CIFS is a protocol that allows various operating systems to share files over a network. It supports permissions and authentication, making it suitable for both small and enterprise-scale applications. CIFS uses the SMB (Server Message Block) protocol for file sharing and is often used in conjunction with Samba, a popular open-source implementation of SMB for Unix-based systems.<\/p>\n<p><\/p>\n<h2>Prerequisites<\/h2>\n<p><\/p>\n<p>Before we proceed, ensure you have the following:<\/p>\n<p><\/p>\n<ul><\/p>\n<li>\n<p>A Linux server with Samba installed. You can install Samba with your distribution&#8217;s package manager. For example:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo apt update<br \/>\nsudo apt install samba<\/p>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p>A basic understanding of networking and user permissions.<\/p>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p>Root or sudo privileges on the Linux server to modify Samba configurations.<\/p>\n<p>\n<\/li>\n<p>\n<\/ul>\n<p><\/p>\n<h2>Step 1: Configure Samba<\/h2>\n<p><\/p>\n<h3>Install Samba<\/h3>\n<p><\/p>\n<p>If you haven&#8217;t installed Samba yet, use the package manager of your Linux distribution:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo apt update<br \/>\nsudo apt install samba<\/p>\n<p><\/p>\n<h3>Configure the Samba Configuration File<\/h3>\n<p><\/p>\n<p>The main configuration file for Samba is usually located at <code>\/etc\/samba\/smb.conf<\/code>. Open this file with your preferred text editor:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo nano \/etc\/samba\/smb.conf<\/p>\n<p><\/p>\n<h3>Set Up Global Parameters<\/h3>\n<p><\/p>\n<p>Add or modify the global settings to define the workgroup and enable necessary features. Here\u2019s a minimal example:<\/p>\n<p><\/p>\n<p>ini<br \/>\n[global]<br \/>\nworkgroup = WORKGROUP<br \/>\nserver string = Samba Server %v<br \/>\nnetbios name = linux-server<br \/>\nsecurity = user<br \/>\nmap to guest = Bad User<br \/>\ndns proxy = no<\/p>\n<p><\/p>\n<p>Save and exit the editor.<\/p>\n<p><\/p>\n<h2>Step 2: Creating Samba Shares<\/h2>\n<p><\/p>\n<p>Next, you need to define the shares that you want to make available to specific trusted hosts. For example, let\u2019s create a share named <code>files<\/code>:<\/p>\n<p><\/p>\n<p>ini<br \/>\n[files]<br \/>\npath = \/srv\/samba\/files<br \/>\nbrowsable = yes<br \/>\nwritable = yes<br \/>\nguest ok = no<br \/>\nvalid users = @smbgroup<\/p>\n<p><\/p>\n<h3>Create the Directory<\/h3>\n<p><\/p>\n<p>Make sure that the specified path exists:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo mkdir -p \/srv\/samba\/files<\/p>\n<p><\/p>\n<h3>Set Permissions<\/h3>\n<p><\/p>\n<p>Set the necessary permissions for the directory, allowing the Samba user group (<code>smbgroup<\/code>) to access it:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo chown :smbgroup \/srv\/samba\/files<br \/>\nsudo chmod 2770 \/srv\/samba\/files<\/p>\n<p><\/p>\n<h3>Create a User Group<\/h3>\n<p><\/p>\n<p>If you don\u2019t have a specific user group for Samba users, create one:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo groupadd smbgroup<\/p>\n<p><\/p>\n<p>Add users to this group:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo usermod -aG smbgroup username<\/p>\n<p><\/p>\n<h2>Step 3: Configuring Access Control for Trusted Hosts<\/h2>\n<p><\/p>\n<p>To limit access to trusted hosts, you can use the <code>hosts allow<\/code> parameter in the Samba configuration. This allows you to specify which IP addresses or subnets can access the shares. For example:<\/p>\n<p><\/p>\n<p>ini<br \/>\n[files]<br \/>\npath = \/srv\/samba\/files<br \/>\nbrowsable = yes<br \/>\nwritable = yes<br \/>\nguest ok = no<br \/>\nvalid users = @smbgroup<br \/>\nhosts allow = 192.168.1.100, 192.168.1.0\/24<br \/>\nhosts deny = ALL<\/p>\n<p><\/p>\n<p>In this configuration:<\/p>\n<p><\/p>\n<ul><\/p>\n<li>Replace <code>192.168.1.100<\/code> with the IP address of your trusted host.<\/li>\n<p><\/p>\n<li>Allow access to an entire subnet with <code>192.168.1.0\/24<\/code>.<\/li>\n<p><\/p>\n<li>Deny access to all other hosts explicitly by setting <code>hosts deny = ALL<\/code>.<\/li>\n<p>\n<\/ul>\n<p><\/p>\n<h2>Step 4: Restart Samba Service<\/h2>\n<p><\/p>\n<p>After making the necessary configurations, restart the Samba service to apply the changes:<\/p>\n<p><\/p>\n<p>bash<br \/>\nsudo systemctl restart smbd nmbd<\/p>\n<p><\/p>\n<h2>Step 5: Testing the Configuration<\/h2>\n<p><\/p>\n<p>To test if your configuration is working as intended:<\/p>\n<p><\/p>\n<ol><\/p>\n<li>\n<p>From a trusted host, attempt to access the share.<\/p>\n<p><\/p>\n<p>bash<br \/>\nsmbclient \/\/linux-server\/files -U username<\/p>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p>Ensure that the user can authenticate and access the shared folder.<\/p>\n<p>\n<\/li>\n<p><\/p>\n<li>\n<p>Attempt to connect from an untrusted host to verify that access is denied.<\/p>\n<p>\n<\/li>\n<p>\n<\/ol>\n<p><\/p>\n<h2>Conclusion<\/h2>\n<p><\/p>\n<p>Configuring CIFS\/SMB access control for trusted hosts on your Linux server enhances your network&#8217;s security by limiting file access to specific clients. By following the steps outlined in this article, you can successfully configure Samba to manage secure file sharing.<\/p>\n<p><\/p>\n<p>Remember that network security is an ongoing process. Regularly review your configurations, apply updates, and ensure that only the required hosts have access to your shared resources.<\/p>\n<p><\/p>\n<p>For further reading, consider exploring Samba&#8217;s official documentation and the Linux community forums to stay updated on best practices. Secure your shared resources effectively with CIFS\/SMB and protect your data today!<\/p>\n<p><\/p>\n<hr \/>\n<p><\/p>\n<p>Feel free to reach out for any questions or additional assistance. Happy sharing!<\/p>\n<p><\/p>\n<hr \/>\n<p><\/p>\n<p>By following this guide, you\u2019re taking an important step in ensuring that your file-sharing practices are secure and efficient in a Linux environment.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>In the era of interconnected systems, secure file sharing is crucial for organizations managing sensitive information. One of the most common file-sharing protocols used in Linux environments is CIFS (Common Internet File System), which allows clients to access files on a remote server. This article will guide you through configuring CIFS\/SMB access control for trusted [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3733,"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":[273,1791,391,274,1526,265,302,1792],"class_list":["post-3732","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-security","tag-access","tag-cifssmb","tag-configuring","tag-control","tag-hosts","tag-linux","tag-servers","tag-trusted","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>Configuring CIFS\/SMB Access Control for Trusted Hosts on Linux Servers - WafaTech Blogs<\/title>\n<meta name=\"description\" content=\"Configuring CIFS\/SMB Access Control for Trusted Hosts 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\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring CIFS\/SMB Access Control for Trusted Hosts on Linux Servers\" \/>\n<meta property=\"og:description\" content=\"Configuring CIFS\/SMB Access Control for Trusted Hosts on Linux Servers %\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-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-09-29T21:29:45+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=\"4 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\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/\"},\"author\":{\"name\":\"WafaTech SA\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/person\\\/1a5761fc0feb63ab59d295d7c2648f06\"},\"headline\":\"Configuring CIFS\\\/SMB Access Control for Trusted Hosts on Linux Servers\",\"datePublished\":\"2025-09-29T21:29:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/\"},\"wordCount\":731,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/Configuring-CIFSSMB-Access-Control-for-Trusted-Hosts-on-Linux-Servers.png\",\"keywords\":[\"Access\",\"CIFSSMB\",\"Configuring\",\"Control\",\"Hosts\",\"Linux\",\"Servers\",\"Trusted\"],\"articleSection\":[\"Linux Security\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/\",\"name\":\"Configuring CIFS\\\/SMB Access Control for Trusted Hosts on Linux Servers - WafaTech Blogs\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/Configuring-CIFSSMB-Access-Control-for-Trusted-Hosts-on-Linux-Servers.png\",\"datePublished\":\"2025-09-29T21:29:45+00:00\",\"description\":\"Configuring CIFS\\\/SMB Access Control for Trusted Hosts on Linux Servers %\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/Configuring-CIFSSMB-Access-Control-for-Trusted-Hosts-on-Linux-Servers.png\",\"contentUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/Configuring-CIFSSMB-Access-Control-for-Trusted-Hosts-on-Linux-Servers.png\",\"width\":1024,\"height\":1024,\"caption\":\"linux server limiting CIFS\\\/SMB access to trusted hosts\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/linux\\\/linux-security\\\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuring CIFS\\\/SMB Access Control for Trusted Hosts 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":"Configuring CIFS\/SMB Access Control for Trusted Hosts on Linux Servers - WafaTech Blogs","description":"Configuring CIFS\/SMB Access Control for Trusted Hosts 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\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/","og_locale":"en_US","og_type":"article","og_title":"Configuring CIFS\/SMB Access Control for Trusted Hosts on Linux Servers","og_description":"Configuring CIFS\/SMB Access Control for Trusted Hosts on Linux Servers %","og_url":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/","og_site_name":"WafaTech Blogs","article_publisher":"https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/","article_published_time":"2025-09-29T21:29:45+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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/#article","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/"},"author":{"name":"WafaTech SA","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/person\/1a5761fc0feb63ab59d295d7c2648f06"},"headline":"Configuring CIFS\/SMB Access Control for Trusted Hosts on Linux Servers","datePublished":"2025-09-29T21:29:45+00:00","mainEntityOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/"},"wordCount":731,"commentCount":0,"publisher":{"@id":"https:\/\/wafatech.sa\/blog\/#organization"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/09\/Configuring-CIFSSMB-Access-Control-for-Trusted-Hosts-on-Linux-Servers.png","keywords":["Access","CIFSSMB","Configuring","Control","Hosts","Linux","Servers","Trusted"],"articleSection":["Linux Security"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/","url":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/","name":"Configuring CIFS\/SMB Access Control for Trusted Hosts on Linux Servers - WafaTech Blogs","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/#primaryimage"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/09\/Configuring-CIFSSMB-Access-Control-for-Trusted-Hosts-on-Linux-Servers.png","datePublished":"2025-09-29T21:29:45+00:00","description":"Configuring CIFS\/SMB Access Control for Trusted Hosts on Linux Servers %","breadcrumb":{"@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/#primaryimage","url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/09\/Configuring-CIFSSMB-Access-Control-for-Trusted-Hosts-on-Linux-Servers.png","contentUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/09\/Configuring-CIFSSMB-Access-Control-for-Trusted-Hosts-on-Linux-Servers.png","width":1024,"height":1024,"caption":"linux server limiting CIFS\/SMB access to trusted hosts"},{"@type":"BreadcrumbList","@id":"https:\/\/wafatech.sa\/blog\/linux\/linux-security\/configuring-cifs-smb-access-control-for-trusted-hosts-on-linux-servers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wafatech.sa\/blog\/"},{"@type":"ListItem","position":2,"name":"Configuring CIFS\/SMB Access Control for Trusted Hosts 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\/09\/Configuring-CIFSSMB-Access-Control-for-Trusted-Hosts-on-Linux-Servers.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/3732","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=3732"}],"version-history":[{"count":0,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/3732\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media\/3733"}],"wp:attachment":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media?parent=3732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/categories?post=3732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/tags?post=3732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}