{"id":6601,"date":"2014-04-20T13:44:12","date_gmt":"2014-04-20T13:44:12","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/linux-samba-share-on-windows-only-writeable-manually-not-throught-netbeans-application-collection-of-common-programming-errors\/"},"modified":"2014-04-20T13:44:12","modified_gmt":"2014-04-20T13:44:12","slug":"linux-samba-share-on-windows-only-writeable-manually-not-throught-netbeans-application-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/linux-samba-share-on-windows-only-writeable-manually-not-throught-netbeans-application-collection-of-common-programming-errors\/","title":{"rendered":"Linux Samba share on Windows only writeable manually not throught Netbeans application-Collection of common programming errors"},"content":{"rendered":"<p>I got a perfectly working Samba share on my linux computer configured. I use it in Windows as Y: network drive. I can create folders, files what so ever. But when I use Netbeans to create a phpdocumentor entry I get write permission errors. And the weirdest thing is that when that error appears phpdocumentor has already created a few folders and files on the network drive.<\/p>\n<p>I get the following errors from phpdocumentor:<\/p>\n<blockquote>\n<p>Fatal error: Smarty error: unable to write to $compile_dir &#8216;Y:\\classes\\database\\documentation\\phpdoc\\media\\26d3399f63abd43a7d72f8c21440dcb0&#8217;<\/p>\n<\/blockquote>\n<p>I believe I had a similar problem before with another php documentor. I can&#8217;t figure out why I can create folders and files without a problem when I do it manually, but when PhpDocumentor tries it gives me write permission errors.<\/p>\n<p>Anyone who could help me out?<\/p>\n<p>The Linux Samba share is configured like this:<\/p>\n<pre><code>[share]\npath = \/var\/www\/domains\/mydomain\nbrowsable = yes\nguest ok = no\nread list = roy\nvalid users = roy\nwrite list = roy\ncreate mask = 0755\n<\/code><\/pre>\n<p>Edit: It looks like PhpDocumenter is trying to write as a different user or something. PhpDocumentor works when I set the mask to 0777, but I don&#8217;t want that as that would give me security risks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got a perfectly working Samba share on my linux computer configured. I use it in Windows as Y: network drive. I can create folders, files what so ever. But when I use Netbeans to create a phpdocumentor entry I get write permission errors. And the weirdest thing is that when that error appears phpdocumentor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6601","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6601"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6601\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}