{"id":1455,"date":"2016-10-20T16:45:22","date_gmt":"2016-10-20T16:45:22","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=1455"},"modified":"2016-10-20T16:47:52","modified_gmt":"2016-10-20T16:47:52","slug":"cannot-open-mailbox-varmailpi-permision-denied","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/cannot-open-mailbox-varmailpi-permision-denied\/","title":{"rendered":"Cannot open mailbox \/var\/mail\/pi: Permission denied"},"content":{"rendered":"<p>This is on a Raspberry Pi, but should be the same on any Linux distro.<\/p>\n<p>Error :<\/p>\n<pre>pi@raspberrypi:~ $ mail\r\nCannot open mailbox \/var\/mail\/pi: Permission denied\r\nNo mail for pi\r\npi@raspberrypi:~ $ \r\n<\/pre>\n<p>Fix :<\/p>\n<pre>sudo touch \/var\/mail\/$USER\r\nsudo chown $USER:mail \/var\/mail\/$USER\r\nsudo chmod 660 \/var\/mail\/$USER<\/pre>\n<p>You can replace &#8220;$USER&#8221; if you need to run the commands for a different account.<br \/>\nExample:<\/p>\n<pre>sudo touch \/var\/mail\/pi\r\nsudo chown pi:mail \/var\/mail\/pi\r\nsudo chmod 660 \/var\/mail\/pi<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is on a Raspberry Pi, but should be the same on any Linux distro. Error : pi@raspberrypi:~ $ mail Cannot open mailbox \/var\/mail\/pi: Permission denied No mail for pi pi@raspberrypi:~ $ Fix : sudo touch \/var\/mail\/$USER sudo chown $USER:mail &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/cannot-open-mailbox-varmailpi-permision-denied\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,91],"tags":[8,7,224,105],"class_list":["post-1455","post","type-post","status-publish","format-standard","hentry","category-command-line","category-linux","category-raspberry-pi","tag-command-line-2","tag-linux-2","tag-mail","tag-pi"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=1455"}],"version-history":[{"count":7,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1455\/revisions"}],"predecessor-version":[{"id":1462,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1455\/revisions\/1462"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=1455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=1455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=1455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}