{"id":1911,"date":"2014-12-12T02:42:55","date_gmt":"2014-12-12T10:42:55","guid":{"rendered":"http:\/\/riguy.azurewebsites.net\/?page_id=1911"},"modified":"2015-01-02T10:53:10","modified_gmt":"2015-01-02T18:53:10","slug":"working-samba-config-for-red-hat-8-0","status":"publish","type":"page","link":"https:\/\/riguy.com\/?page_id=1911","title":{"rendered":"Working Samba Config for Red Hat 8.0"},"content":{"rendered":"<p>From a Red Hat 8.0 Samba Server. Location: \/etc\/samba\/smb.conf.<\/p>\n<p>The text in blue represents the parts from Webmin which were edited. Of course, anything in this file is fair game, to be edited within VI \/ VIM, or any editor.<br \/>\n# This is the main Samba configuration file. You should read the<\/p>\n<p># smb.conf(5) manual page in order to understand the options listed<\/p>\n<p># here. Samba has a huge number of configurable options (perhaps too<\/p>\n<p># many!) most of which are not shown in this example<\/p>\n<p>#<\/p>\n<p># Any line which starts with a ; (semi-colon) or a # (hash) <\/p>\n<p># is a comment and is ignored. In this example we will use a #<\/p>\n<p># for commentry and a ; for parts of the config file that you<\/p>\n<p># may wish to enable<\/p>\n<p>#<\/p>\n<p># NOTE: Whenever you modify this file you should run the command &#8220;testparm&#8221;<\/p>\n<p># to check that you have not made any basic syntactic errors. <\/p>\n<p>#<\/p>\n<p>#======================= Global Settings =====================================<\/p>\n<p>[global]<\/p>\n<p>log file = \/var\/log\/samba\/%m.log<\/p>\n<p>smb passwd file = \/etc\/samba\/smbpasswd<\/p>\n<p>load printers = yes<\/p>\n<p>socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192<\/p>\n<p>obey pam restrictions = yes<\/p>\n<p>wins server = 192.168.1.15<\/p>\n<p>null passwords = yes<\/p>\n<p>encrypt passwords = yes<\/p>\n<p>dns proxy = no <\/p>\n<p>writeable = yes<\/p>\n<p>printing = lprng<\/p>\n<p>default = homes<\/p>\n<p>unix password sync = Yes<\/p>\n<p>printcap name = \/etc\/printcap<\/p>\n<p>security = user<\/p>\n<p>preferred master = no<\/p>\n<p>max log size = 0<\/p>\n<p>pam password change = yes<\/p>\n<p>[Linux Dave]<\/p>\n<p>path = \/home\/dave<\/p>\n<p>comment = Home Dir Samba Share <\/p>\n<p>valid users = %S<\/p>\n<p>public = yes<\/p>\n<p>create mode = 0664<\/p>\n<p>directory mode = 0775<\/p>\n<p>[printers]<\/p>\n<p>comment = All Printers<\/p>\n<p>path = \/var\/spool\/samba<\/p>\n<p>browseable = no<\/p>\n<p># Set public = yes to allow user &#8216;guest account&#8217; to print<\/p>\n<p>guest ok = no<\/p>\n<p>writable = no<\/p>\n<p>printable = yes<\/p>\n<p># This one is useful for people to share files<\/p>\n<p>;[tmp]<\/p>\n<p>; comment = Temporary file space<\/p>\n<p>; path = \/tmp<\/p>\n<p>; read only = no<\/p>\n<p>; public = yes<\/p>\n<p># A publicly accessible directory, but read only, except for people in<\/p>\n<p># the &#8220;staff&#8221; group<\/p>\n<p>;[public]<\/p>\n<p>; comment = Public Stuff<\/p>\n<p>; path = \/home\/samba<\/p>\n<p>; public = yes<\/p>\n<p>; writable = yes<\/p>\n<p>; printable = no<\/p>\n<p>; write list = @staff<\/p>\n<p># Other examples. <\/p>\n<p>#<\/p>\n<p># A private printer, usable only by fred. Spool data will be placed in fred&#8217;s<\/p>\n<p># home directory. Note that fred must have write access to the spool directory,<\/p>\n<p># wherever it is.<\/p>\n<p>;[fredsprn]<\/p>\n<p>; comment = Fred&#8217;s Printer<\/p>\n<p>; valid users = fred<\/p>\n<p>; path = \/home\/fred<\/p>\n<p>; printer = freds_printer<\/p>\n<p>; public = no<\/p>\n<p>; writable = no<\/p>\n<p>; printable = yes<\/p>\n<p># A private directory, usable only by fred. Note that fred requires write<\/p>\n<p># access to the directory.<\/p>\n<p>;[fredsdir]<\/p>\n<p>; comment = Fred&#8217;s Service<\/p>\n<p>; path = \/usr\/somewhere\/private<\/p>\n<p>; valid users = fred<\/p>\n<p>; public = no<\/p>\n<p>; writable = yes<\/p>\n<p>; printable = no<\/p>\n<p># a service which has a different directory for each machine that connects<\/p>\n<p># this allows you to tailor configurations to incoming machines. You could<\/p>\n<p># also use the %U option to tailor it by user name.<\/p>\n<p># The %m gets replaced with the machine name that is connecting.<\/p>\n<p>;[pchome]<\/p>\n<p>; comment = PC Directories<\/p>\n<p>; path = \/usr\/local\/pc\/%m<\/p>\n<p>; public = no<\/p>\n<p>; writable = yes<\/p>\n<p># A publicly accessible directory, read\/write to all users. Note that all files<\/p>\n<p># created in the directory by users will be owned by the default user, so<\/p>\n<p># any user with access can delete any other user&#8217;s files. Obviously this<\/p>\n<p># directory must be writable by the default user. Another user could of course<\/p>\n<p># be specified, in which case all files would be owned by that user instead.<\/p>\n<p>;[public]<\/p>\n<p>; path = \/usr\/somewhere\/else\/public<\/p>\n<p>; public = yes<\/p>\n<p>; only guest = yes<\/p>\n<p>; writable = yes<\/p>\n<p>; printable = no<\/p>\n<p># The following two entries demonstrate how to share a directory so that two<\/p>\n<p># users can place files there that will be owned by the specific users. In this<\/p>\n<p># setup, the directory should be writable by both users and should have the<\/p>\n<p># sticky bit set on it to prevent abuse. Obviously this could be extended to<\/p>\n<p># as many users as required.<\/p>\n<p>;[myshare]<\/p>\n<p>; comment = Mary&#8217;s and Fred&#8217;s stuff<\/p>\n<p>; path = \/usr\/somewhere\/shared<\/p>\n<p>; valid users = mary fred<\/p>\n<p>; public = no<\/p>\n<p>; writable = yes<\/p>\n<p>; printable = no<\/p>\n<p>; create mask = 0765<\/p>\n<p><code><script type=\"text\/javascript\">\n    google_ad_client = \"ca-pub-3504741731932097\";\n    google_ad_slot = \"9191006397\";\n    google_ad_width = 300;\n    google_ad_height = 250;\n<\/script><br \/>\n<!-- Rectangle for Pages --><br \/>\n<script type=\"text\/javascript\"\nsrc=\"\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/code><\/p>\n<p><code><body ondragstart=\"return\nfalse\" onselectstart=\"return false\"><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>From a Red Hat 8.0 Samba Server. Location: \/etc\/samba\/smb.conf. The text in blue represents the parts from Webmin which were edited. Of course, anything in this file is fair game, to be edited within VI \/ VIM, or any editor. # This is the main Samba configuration file. You should read the # smb.conf(5) manual &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/riguy.com\/?page_id=1911\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Working Samba Config for Red Hat 8.0&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":4831,"menu_order":2,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1911","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/1911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/riguy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1911"}],"version-history":[{"count":4,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/1911\/revisions"}],"predecessor-version":[{"id":5721,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/1911\/revisions\/5721"}],"up":[{"embeddable":true,"href":"https:\/\/riguy.com\/index.php?rest_route=\/wp\/v2\/pages\/4831"}],"wp:attachment":[{"href":"https:\/\/riguy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}