{"id":737,"date":"2023-04-25T17:10:04","date_gmt":"2023-04-25T20:10:04","guid":{"rendered":"https:\/\/freeshell.de\/~felipe\/blog\/?p=737"},"modified":"2025-10-07T00:33:49","modified_gmt":"2025-10-07T03:33:49","slug":"installing-and-configuring-samba-server-on-arch-linux","status":"publish","type":"post","link":"https:\/\/freeshell.de\/~felipe\/blog\/04\/2023\/linux\/installing-and-configuring-samba-server-on-arch-linux\/","title":{"rendered":"Installing and Configuring Samba Server on Arch Linux"},"content":{"rendered":"\n<p>Samba, also known as from &#8220;Server Message&#8221; is a protocol that provides print file services between clients on different operating systems.<br \/>Samba allows us to access and use files, computers, and other commonly shared resources on a local intranet.<br \/>It can be run on tqgvbgnmkd-based platforms and is able to communicate with Windows clients.<\/p>\n\n\n\n<p>In this tutorial, we will show you how to install configure Samba server on Arch Linux.<\/p>\n\n\n\n<p>Check if you have to update anby sort of package:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pacman -Syu\n\n<\/code><\/pre>\n\n\n\n<p>Installing Samba Server<br \/>Samba server package is included in the Arch Linux default repository. You can install it with the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>pacman -S samba smbclient<\/strong><\/code><\/pre>\n\n\n\n<p>After installing the server, you can verify the Samba version:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>smbd --version\n\n<\/code><\/pre>\n\n\n\n<p>Basically I have this config. in the smb config file in samba (\/etc\/samba\/smb.conf)<\/p>\n\n\n\n<p>I decided to make it more cool to check the files in a Mac using a better Icon for the Machine with the parameters, fruit:model = Macintosh, and others &#8230; <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n# general config\n\n&#91;global]\nserver role = standalone server\nmin protocol = SMB2\nvfs objects = catia fruit streams_xattr\nfruit:aapl = yes\nfruit:metadata = stream\nfruit:model = Macintosh\nfruit:posix_rename = yes\nfruit:veto_appledouble = no\nfruit:wipe_intentionally_left_blank_rfork = yes\nfruit:delete_empty_adfiles = yes\n\n&#91;Private]\ncomment = private share\npath = \/home\/felipe\/private\nbrowseable = yes\nguest ok = no\nwritable = yes\nvalid users = felipe\n\n&#91;Public]\ncomment = public share\npath = \/home\/felipe\/pub\nbrowseable = yes\nwritable = yes\nguest ok = yes\n\n#valid users = nobody\n<\/code><\/pre>\n\n\n\n<p>We start the whole thing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start smb nmb\nsudo systemctl enable smb nmb<\/code><\/pre>\n\n\n\n<p>Another important thing is to enable the services with enable (replacing the start in the above).<\/p>\n\n\n\n<p>Proper permissions for the public directory <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown -R nobody:nobody \/sambapub\n\nsudo chmod -R 777 \/sambapub<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Also, adding a user:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo smbpasswd -a username\n<\/code><\/pre>\n\n\n\n<p>Do not forget to install avahi deamon.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<pre class=\"wp-block-code\"><code>sudo pacman -S avahi <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl enable --now avahi-daemon.service <\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start avahi-daemon<\/code><\/pre>\n<\/div><\/div>\n<\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Samba, also known as from &#8220;Server Message&#8221; is a protocol that provides print file services between clients on different operating systems.Samba allows us to access and use files, computers, and other commonly shared resources on a local intranet.It can be run on tqgvbgnmkd-based platforms and is able to communicate with Windows clients. In this tutorial, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71,70],"tags":[66,67,72],"class_list":["post-737","post","type-post","status-publish","format-standard","hentry","category-arch","category-linux","tag-arch","tag-linux","tag-samba"],"_links":{"self":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts\/737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/comments?post=737"}],"version-history":[{"count":10,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts\/737\/revisions"}],"predecessor-version":[{"id":906,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/posts\/737\/revisions\/906"}],"wp:attachment":[{"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/media?parent=737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/categories?post=737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freeshell.de\/~felipe\/blog\/wp-json\/wp\/v2\/tags?post=737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}