{"id":6621,"date":"2014-04-20T13:57:14","date_gmt":"2014-04-20T13:57:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/linux-file-permissions-issue-unexpected-access-to-file-collection-of-common-programming-errors\/"},"modified":"2014-04-20T13:57:14","modified_gmt":"2014-04-20T13:57:14","slug":"linux-file-permissions-issue-unexpected-access-to-file-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/linux-file-permissions-issue-unexpected-access-to-file-collection-of-common-programming-errors\/","title":{"rendered":"Linux file permissions issue, unexpected access to file-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m relatively new to Linux so please excuse my ignorance.<\/p>\n<p>I have a public web directory where I have been experimenting with the permissions to try to learn about them. I have set up a simple test.php file and set its permissions as follows:<\/p>\n<p>-rw &#8212; &#8212;<\/p>\n<p>Which I was expecting to mean only the owner can access the file and no other. But, I can still access this file remotely from the web and the test page shows? This is on a Red Hat web server. NOTE: The owner use is not the web access user.<\/p>\n<p>This worries me as I then think maybe a web user could write to the file some how (is it possible?).<\/p>\n<p>Any pointers would be great. I just want to makesure I understand this as it seems to me to be an important security concept.<\/p>\n<p>Cheers C<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m relatively new to Linux so please excuse my ignorance. I have a public web directory where I have been experimenting with the permissions to try to learn about them. I have set up a simple test.php file and set its permissions as follows: -rw &#8212; &#8212; Which I was expecting to mean only the [&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-6621","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6621","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=6621"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6621\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}