{"id":241,"date":"2010-06-20T08:50:00","date_gmt":"2010-06-19T21:50:00","guid":{"rendered":"http:\/\/howden.net.au\/thowden\/?p=241"},"modified":"2010-06-20T08:50:00","modified_gmt":"2010-06-19T21:50:00","slug":"sme-server-and-samba","status":"publish","type":"post","link":"https:\/\/howden.net.au\/thowden\/2010\/06\/sme-server-and-samba\/","title":{"rendered":"SME Server and Samba"},"content":{"rendered":"<p>Working a bit with two new SME servers in the past week and creating additional configuration of Samba as a part of this.\u00a0 There have been a number of things I needed to mess with to get it working how I wanted.<\/p>\n<p>First up SME server 7.5 &amp; 8.0b5 still have an inconsistency with the templating process.<\/p>\n<p>Normally the compilation of a file from the template fragments follows the logical path of the resultant file, i.e.<\/p>\n<p>\/etc\/httpd\/httpd.conf file<\/p>\n<p>is built from the<\/p>\n<p>\/etc\/e-smith\/templates\/etc\/httpd\/httpd.conf\/<\/p>\n<p>directory with the template fragments within it.<\/p>\n<p>The Samba smb.conf file lives within the \/etc\/samba directory<\/p>\n<p>\/etc\/samba\/smb.conf<\/p>\n<p>but is compiled from the<\/p>\n<p>\/etc\/e-smith\/templates\/etc\/smb.conf<\/p>\n<p>location which is inconsistent but having read through http:\/\/bugs.contribs.org it would appear that this has been left alone for quite some years as ok. Minor annoyance for me.<\/p>\n<p>The next bit is trying to get a new share setup for general use and multi user access to a QuickBooks data file.<\/p>\n<p>Creating a new template fragment<\/p>\n<blockquote><p>{<\/p>\n<p>$OUT .= &lt;&lt;HERE;<\/p>\n<p>[newsharename]<br \/>\ncomment = Data files for my group<br \/>\npath = \/home\/e-smith\/files\/data<br \/>\ncreate mask = 0770<br \/>\nforce group = mygroupsname<br \/>\nguest ok = yes<br \/>\nwritable = yes<br \/>\nbrowseable = yes<\/p>\n<p>HERE<\/p>\n<p>}<\/p><\/blockquote>\n<p>Ok, next I expand the template and restart smb service.<\/p>\n<blockquote><p>#\/sbin\/e-smith\/expand-template \/etc\/smb.conf<\/p>\n<p>#service smb restart<\/p><\/blockquote>\n<p>Which all appears to work nicely with new files created with the groupname set so that any group member can get to the files they want to open. The only thing I cannot work out is why the exceute bit is not set for the group, i.e. the file mask is -rwxrw&#8212;- (0760) rather than -rwxrwx&#8212; (0770)\u00a0 but it does not appear to impact on anything.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Working a bit with two new SME servers in the past week and creating additional configuration of Samba as a part of this.\u00a0 There have been a number of things I needed to mess with to get it working how I wanted. First up SME server 7.5 &amp; 8.0b5 still have an inconsistency with the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-241","post","type-post","status-publish","format-standard","hentry","category-linux-servers-and-software"],"_links":{"self":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/comments?post=241"}],"version-history":[{"count":0,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/posts\/241\/revisions"}],"wp:attachment":[{"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/media?parent=241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/categories?post=241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howden.net.au\/thowden\/wp-json\/wp\/v2\/tags?post=241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}