{"id":142,"date":"2014-09-03T16:03:46","date_gmt":"2014-09-03T16:03:46","guid":{"rendered":"https:\/\/www.n2lrb.info\/?p=142"},"modified":"2021-01-30T13:54:24","modified_gmt":"2021-01-30T13:54:24","slug":"mission-permission","status":"publish","type":"post","link":"https:\/\/www.n2lrb.info\/index.php\/2014\/09\/03\/mission-permission\/","title":{"rendered":"Mission Permission"},"content":{"rendered":"<p>September 6, 2014 \u2013 I spent a few hours trying to get my two websites back on my Beaglebone Black and succeeded (as per my previous post). But I still could not see (parse) the files that were already on my \u2018html\u2019 folder on which my my sda1 (micro sd card) was mounted.<\/p>\n<p>I checked a few websites looking for answers. The problem was obviously one of getting\/setting the right permissions, for the folder or Apache or something! I found the right answer after trying a suggestion on the following web page:<\/p>\n<p><a title=\"http:\/\/stackoverflow.com\/questions\/10873295\/error-message-forbidden-you-dont-have-permission-to-access-on-this-server\" href=\"http:\/\/stackoverflow.com\/questions\/10873295\/error-message-forbidden-you-dont-have-permission-to-access-on-this-server\">http:\/\/stackoverflow.com\/questions\/10873295\/error-message-forbidden-you-dont-have-permission-to-access-on-this-server<\/a><\/p>\n<p>The page said the following:<\/p>\n<blockquote><p>Forbidden You don\u2019t have permission to access \/ on this server is actually the default configuration for an apache directory in\u00a0<code>httpd.conf<\/code>.<\/p><\/blockquote>\n<pre><code>#\r\n# Each directory to which Apache has access can be configured with respect\r\n# to which services and features are allowed and\/or disabled in that\r\n# directory (and its subdirectories). \r\n#\r\n# First, we configure the \"default\" to be a very restrictive set of \r\n# features.  \r\n#\r\n&lt;Directory \/&gt;\r\n    Options FollowSymLinks\r\n    AllowOverride None\r\n    Order deny,allow\r\n    Deny from all          # the cause of permission denied\r\n&lt;\/Directory&gt;\r\n<\/code><\/pre>\n<p>Simply changing\u00a0<code>Deny from all<\/code>\u00a0to\u00a0<code>Allow from all<\/code>\u00a0should solve the permission problem.<\/p>\n<div id=\"attachment_63\" class=\"wp-caption alignleft\"><a href=\"http:\/\/192.168.1.136\/blog\/wp-content\/uploads\/2014\/09\/cmdline.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-63 size-medium\" src=\"http:\/\/192.168.1.136\/blog\/wp-content\/uploads\/2014\/09\/cmdline-300x140.jpg\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" srcset=\"http:\/\/192.168.1.158\/Techno\/wp-content\/uploads\/2014\/09\/cmdline-300x140.jpg 300w, http:\/\/192.168.1.158\/Techno\/wp-content\/uploads\/2014\/09\/cmdline.jpg 670w\" alt=\"Terminal window showing file ownership\" width=\"300\" height=\"140\" aria-describedby=\"caption-attachment-63\" \/><\/a><\/p>\n<p id=\"caption-attachment-63\" class=\"wp-caption-text\">Terminal window showing file ownership<\/p>\n<\/div>\n<p>I tried it and it worked! I was able to view an index.html file inside the \u2018html\u2019 folder! That all happened on the 3rd of September 2014. \u00a0I figured that all was well with my Beaglebone Black and I could start moving my sites back to the mounted \u00a0external drive. Yesterday, September 5, 2014 I fired up my Filezilla ftp program and tried to upload files to html folder. I was upset to find out that I don\u2019t have permission to add files to that folder. Doing a quick \u2018ls -la\u2019 showed that the \u2018html\u2019 folder was own and grouped to \u2018root\u2019. \u00a0I did not remember making that a root folder.<\/p>\n<p>S<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-143 alignleft\" src=\"https:\/\/www.n2lrb.info\/wp-content\/uploads\/2021\/01\/cmdline-300x140-1.jpg\" alt=\"\" width=\"300\" height=\"140\" \/>o I tried a little experiment. I unmounted the external micro sd \u00a0\u2014 with a quick \u00a0\u2018sudo umount \u00a0\/dev\/sda\u2019. I then created another folder called \u2018htm\u2019 and mounted the drive to it. \u00a0I then \u00a0\u2018ls -la\u2019 again and found that my \u2018html\u2019 folder was now owned by me and that the \u2018htm\u2019 folder was now owned by root even though it had previously been owned by me. It seems (as I suspected) that mounting a drive to a folder automatically makes that folder\u2019s ownership and group change to root. Problem is, that unless one is root one can not add, delete or use that folder. Which makes the whole enterprise Useless! \u00a0This is one of my pet peeves about Linux. \u00a0It works so hard a being secure that it makes itself not useful. At times like these I just want to slack those who would defend this stupidity, this having to search even more hours, try even more things just to do what works perfectly OK on Windows!! I have spent over 6 hours in research in trying to get a stupid micro sd card to work, to mount and I still can\u2019t use it!!<\/p>\n<p>I have researched this issue and have tried a few of their remedies, but none of them work. Even as root I can not change the permissions on the mounted sd card \u2013 sda1. I wish there was someone to sue for all this waste of time. If I had the money, I\u2019d sue Apache, and Linus for making life harder than it needs to be and for not having clear cut instructions on how to exactly fix things.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>September 6, 2014 \u2013 I spent a few hours trying to get my two websites back on my Beaglebone Black and succeeded (as per my previous post). But I still &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-142","post","type-post","status-publish","format-standard","hentry","category-computing"],"_links":{"self":[{"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/posts\/142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/comments?post=142"}],"version-history":[{"count":1,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/posts\/142\/revisions"}],"predecessor-version":[{"id":144,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/posts\/142\/revisions\/144"}],"wp:attachment":[{"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/media?parent=142"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/categories?post=142"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.n2lrb.info\/index.php\/wp-json\/wp\/v2\/tags?post=142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}