{"id":529,"date":"2025-02-16T22:23:53","date_gmt":"2025-02-16T22:23:53","guid":{"rendered":"https:\/\/www.flexpaul.com\/?p=529"},"modified":"2025-02-23T05:25:17","modified_gmt":"2025-02-23T05:25:17","slug":"permissions-issues","status":"publish","type":"post","link":"https:\/\/www.flexpaul.com\/index.php\/2025\/02\/16\/permissions-issues\/","title":{"rendered":"Permissions Issues on Development Server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When making some changes to my environment I ran into permissions issues.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The fix for some stuff was to add my user to the www-data group and re permission the folders hosting the websites.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown -R www-data:www-data \/var\/www\/flexpaul_net\/<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chmod -R 755 \/var\/www\/flexpaul_net\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And finally<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo usermod -aG www-data <em>(USERNAME)<\/em><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Notes:<br>-aG adds the user to the group without removing them from others.<br>After we do this you will need to log out and back on for changes to take effect. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">At the very end, that didn&#8217;t seem to do much help and I trouble shot until this worked.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo find \/var\/www\/flexpaul_net\/cms_\/ -type d -exec chmod 775 {} \\;<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo find \/var\/www\/flexpaul_net\/cms_\/ -type f -exec chmod 664 {} \\;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Reopened VScode and again could write.<\/p>\n\n\n<div class=\"wp-block-post-author\"><div class=\"wp-block-post-author__avatar\"><img alt='Avatar photo' src='https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/cropped-cropped-image145-96x96.png' srcset='https:\/\/www.flexpaul.com\/wp-content\/uploads\/2023\/12\/cropped-cropped-image145-192x192.png 2x' class='avatar avatar-96 photo' height='96' width='96' \/><\/div><div class=\"wp-block-post-author__content\"><p class=\"wp-block-post-author__name\"><a href=\"https:\/\/www.flexpaul.com\/index.php\/author\/ppmuetze\/\" target=\"_self\">Paul<\/a><\/p><p class=\"wp-block-post-author__bio\">Coffee-fueled and code-driven, I&#8217;m Paul, a digital nomad tech consultant with a knack for navigating the ever-evolving landscapes of open-source software, solar power, and the occasional political pit stop. With 20+ years of experience under my belt, I&#8217;m excited to share my insights, weave captivating narratives about technology&#8217;s impact, and offer valuable perspectives on leadership and positivity. So, grab your digital passport and join me on this virtual voyage of the internet&#8217;s quirky corners, one thought-provoking discussion at a time. Buckle up, it&#8217;s gonna be an informative and wildly exciting ride!<\/p><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>When making some changes to my environment I ran into permissions issues. The fix for some stuff was to add my user to the www-data group and re permission the folders hosting the websites. And finally Notes:-aG adds the user to the group without removing them from others.After we do this you will need to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":553,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[354,4,383,365],"tags":[388,384,386,16,389,390,391,392,387,385],"class_list":["post-529","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-os_install","category-tutorial","category-web-server","category-xoops","tag-chmod","tag-chown","tag-development-server","tag-linux","tag-permissions","tag-server-administration-2","tag-troubleshooting","tag-user-groups","tag-usermod","tag-www-data"],"jetpack_featured_media_url":"https:\/\/www.flexpaul.com\/wp-content\/uploads\/2025\/02\/security-265130_640.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":3,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"predecessor-version":[{"id":534,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/posts\/529\/revisions\/534"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/media\/553"}],"wp:attachment":[{"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flexpaul.com\/index.php\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}