{"id":4444,"date":"2016-07-01T23:23:04","date_gmt":"2016-07-01T21:23:04","guid":{"rendered":"https:\/\/www.pa0esh.com\/?p=4444"},"modified":"2016-07-01T23:23:04","modified_gmt":"2016-07-01T21:23:04","slug":"creating-a-new-user-for-wordpress-ftp","status":"publish","type":"post","link":"https:\/\/www.pa0esh.com\/?p=4444","title":{"rendered":"Creating a new user for wordpress FTP"},"content":{"rendered":"<p><strong>Sharing Write Permission<\/strong><\/p>\n<p>For more than one user to be able to write to the same directory it will be necessary to grant write permission to a group they share in common. The following example grants shared write permission to \/var\/www\/html to the group &#8220;webmasters&#8221;<\/p>\n<p>I use<strong> www-data<\/strong>. Just replace &#8220;webmasters&#8221; with your group, be sure you add the user to the group of course.<\/p>\n<p>sudo chgrp -R webmasters \/var\/www\/html<br \/>\nsudo find \/var\/www\/html -type d -exec chmod g=rwxs &#8220;{}&#8221; \\;<br \/>\nsudo find \/var\/www\/html -type f -exec chmod g=rws &#8220;{}&#8221; \\;<br \/>\nI just tested it with Dreamweaver from my mac desktop and uploaded and replaced files added files etc and it retains the correct permissions with one exception, the local user becomes owner of new files along with www-data, but any files created by root in the html directory retain their ownership as root but are editable by local user.<\/p>\n<p>$ls -l<br \/>\n$-rw-rw-r&#8211; 1 localUser www-data 11505 May 28 09:56 index2.html<br \/>\n$-rw-rwSr&#8211; 1 root www-data 11535 May 28 09:58 index.html<br \/>\nHope this clears up things and helps the weary, cause I know I was always weary of this situation, but now it is clear to me.<\/p>\n<p>Oh and I highly recommend using sftp with keys to access your ftp, works great for me and don&#8217;t need PureFTP or any other insecure method of delivering the files to the website. There&#8217;s a good few tutorials on Digital Ocean site all about securing your server with ssh keys:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sharing Write Permission For more than one user to be able to write to the same directory it will be necessary to grant write permission to a group they share<a href=\"https:\/\/www.pa0esh.com\/?p=4444\" class=\"more-link\">Read More <span class=\"screen-reader-text\">Creating a new user for wordpress FTP<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4444","post","type-post","status-publish","format-standard","hentry","category-geen-categorie"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Creating a new user for wordpress FTP - PA0ESH<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pa0esh.com\/?p=4444\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Creating a new user for wordpress FTP - PA0ESH\" \/>\n<meta property=\"og:description\" content=\"Sharing Write Permission For more than one user to be able to write to the same directory it will be necessary to grant write permission to a group they shareRead More Creating a new user for wordpress FTP\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pa0esh.com\/?p=4444\" \/>\n<meta property=\"og:site_name\" content=\"PA0ESH\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-01T21:23:04+00:00\" \/>\n<meta name=\"author\" content=\"Erik Schott\" \/>\n<meta name=\"twitter:label1\" content=\"Geschreven door\" \/>\n\t<meta name=\"twitter:data1\" content=\"Erik Schott\" \/>\n\t<meta name=\"twitter:label2\" content=\"Geschatte leestijd\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/?p=4444#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/?p=4444\"},\"author\":{\"name\":\"Erik Schott\",\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/#\\\/schema\\\/person\\\/280559939f7ea8874860d42d0272643c\"},\"headline\":\"Creating a new user for wordpress FTP\",\"datePublished\":\"2016-07-01T21:23:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/?p=4444\"},\"wordCount\":254,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/#\\\/schema\\\/person\\\/e665d7a767d11431dbc825522b358739\"},\"articleSection\":[\"Geen categorie\"],\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pa0esh.com\\\/?p=4444#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/?p=4444\",\"url\":\"https:\\\/\\\/www.pa0esh.com\\\/?p=4444\",\"name\":\"Creating a new user for wordpress FTP - PA0ESH\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/#website\"},\"datePublished\":\"2016-07-01T21:23:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/?p=4444#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pa0esh.com\\\/?p=4444\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/?p=4444#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pa0esh.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating a new user for wordpress FTP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/#website\",\"url\":\"https:\\\/\\\/www.pa0esh.com\\\/\",\"name\":\"PA0ESH\",\"description\":\"Hobby's at their best\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/#\\\/schema\\\/person\\\/e665d7a767d11431dbc825522b358739\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pa0esh.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/#\\\/schema\\\/person\\\/e665d7a767d11431dbc825522b358739\",\"name\":\"Erik Schott\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8edc14157a5774ddddbf6aea2b9f5dac7cec7613d8e0d248aa4d267108a252d9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8edc14157a5774ddddbf6aea2b9f5dac7cec7613d8e0d248aa4d267108a252d9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8edc14157a5774ddddbf6aea2b9f5dac7cec7613d8e0d248aa4d267108a252d9?s=96&d=mm&r=g\",\"caption\":\"Erik Schott\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8edc14157a5774ddddbf6aea2b9f5dac7cec7613d8e0d248aa4d267108a252d9?s=96&d=mm&r=g\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.pa0esh.com\\\/#\\\/schema\\\/person\\\/280559939f7ea8874860d42d0272643c\",\"name\":\"Erik Schott\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f29d5459412bf2d9a92733cd70338fd8ca67bd8e27de048623bd8c7b644c72ae?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f29d5459412bf2d9a92733cd70338fd8ca67bd8e27de048623bd8c7b644c72ae?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f29d5459412bf2d9a92733cd70338fd8ca67bd8e27de048623bd8c7b644c72ae?s=96&d=mm&r=g\",\"caption\":\"Erik Schott\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Creating a new user for wordpress FTP - PA0ESH","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:\/\/www.pa0esh.com\/?p=4444","og_locale":"nl_NL","og_type":"article","og_title":"Creating a new user for wordpress FTP - PA0ESH","og_description":"Sharing Write Permission For more than one user to be able to write to the same directory it will be necessary to grant write permission to a group they shareRead More Creating a new user for wordpress FTP","og_url":"https:\/\/www.pa0esh.com\/?p=4444","og_site_name":"PA0ESH","article_published_time":"2016-07-01T21:23:04+00:00","author":"Erik Schott","twitter_misc":{"Geschreven door":"Erik Schott","Geschatte leestijd":"1 minuut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pa0esh.com\/?p=4444#article","isPartOf":{"@id":"https:\/\/www.pa0esh.com\/?p=4444"},"author":{"name":"Erik Schott","@id":"https:\/\/www.pa0esh.com\/#\/schema\/person\/280559939f7ea8874860d42d0272643c"},"headline":"Creating a new user for wordpress FTP","datePublished":"2016-07-01T21:23:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pa0esh.com\/?p=4444"},"wordCount":254,"commentCount":0,"publisher":{"@id":"https:\/\/www.pa0esh.com\/#\/schema\/person\/e665d7a767d11431dbc825522b358739"},"articleSection":["Geen categorie"],"inLanguage":"nl-NL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pa0esh.com\/?p=4444#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pa0esh.com\/?p=4444","url":"https:\/\/www.pa0esh.com\/?p=4444","name":"Creating a new user for wordpress FTP - PA0ESH","isPartOf":{"@id":"https:\/\/www.pa0esh.com\/#website"},"datePublished":"2016-07-01T21:23:04+00:00","breadcrumb":{"@id":"https:\/\/www.pa0esh.com\/?p=4444#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pa0esh.com\/?p=4444"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.pa0esh.com\/?p=4444#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pa0esh.com\/"},{"@type":"ListItem","position":2,"name":"Creating a new user for wordpress FTP"}]},{"@type":"WebSite","@id":"https:\/\/www.pa0esh.com\/#website","url":"https:\/\/www.pa0esh.com\/","name":"PA0ESH","description":"Hobby's at their best","publisher":{"@id":"https:\/\/www.pa0esh.com\/#\/schema\/person\/e665d7a767d11431dbc825522b358739"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pa0esh.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"},{"@type":["Person","Organization"],"@id":"https:\/\/www.pa0esh.com\/#\/schema\/person\/e665d7a767d11431dbc825522b358739","name":"Erik Schott","image":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/secure.gravatar.com\/avatar\/8edc14157a5774ddddbf6aea2b9f5dac7cec7613d8e0d248aa4d267108a252d9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8edc14157a5774ddddbf6aea2b9f5dac7cec7613d8e0d248aa4d267108a252d9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8edc14157a5774ddddbf6aea2b9f5dac7cec7613d8e0d248aa4d267108a252d9?s=96&d=mm&r=g","caption":"Erik Schott"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/8edc14157a5774ddddbf6aea2b9f5dac7cec7613d8e0d248aa4d267108a252d9?s=96&d=mm&r=g"}},{"@type":"Person","@id":"https:\/\/www.pa0esh.com\/#\/schema\/person\/280559939f7ea8874860d42d0272643c","name":"Erik Schott","image":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/secure.gravatar.com\/avatar\/f29d5459412bf2d9a92733cd70338fd8ca67bd8e27de048623bd8c7b644c72ae?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f29d5459412bf2d9a92733cd70338fd8ca67bd8e27de048623bd8c7b644c72ae?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f29d5459412bf2d9a92733cd70338fd8ca67bd8e27de048623bd8c7b644c72ae?s=96&d=mm&r=g","caption":"Erik Schott"}}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.pa0esh.com\/index.php?rest_route=\/wp\/v2\/posts\/4444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pa0esh.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pa0esh.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pa0esh.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pa0esh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4444"}],"version-history":[{"count":1,"href":"https:\/\/www.pa0esh.com\/index.php?rest_route=\/wp\/v2\/posts\/4444\/revisions"}],"predecessor-version":[{"id":4445,"href":"https:\/\/www.pa0esh.com\/index.php?rest_route=\/wp\/v2\/posts\/4444\/revisions\/4445"}],"wp:attachment":[{"href":"https:\/\/www.pa0esh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pa0esh.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pa0esh.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}