{"id":6603,"date":"2014-04-20T13:45:24","date_gmt":"2014-04-20T13:45:24","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/troubles-with-permissions-of-a-new-user-collection-of-common-programming-errors\/"},"modified":"2014-04-20T13:45:24","modified_gmt":"2014-04-20T13:45:24","slug":"troubles-with-permissions-of-a-new-user-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/20\/troubles-with-permissions-of-a-new-user-collection-of-common-programming-errors\/","title":{"rendered":"Troubles with permissions of a new user-Collection of common programming errors"},"content":{"rendered":"<p>I want to create a new user and give him possibility to use git. So, I&#8217;ve installed git:<\/p>\n<pre><code>sudo apt-get install git\n<\/code><\/pre>\n<p>After that I&#8217;ve created a user:<\/p>\n<pre><code>sudo useradd -d \/home\/developer -s \/bin\/bash -g sudo -m developer\n<\/code><\/pre>\n<p>And now I have a problem. When I switch to a new user and try to do something like this:<\/p>\n<pre><code>git clone \n<\/code><\/pre>\n<p>I get this error message:<\/p>\n<pre><code>fatal: unable to access '\/home\/roman\/.config\/git\/config': Permission denied\n<\/code><\/pre>\n<p>I can&#8217;t get why environment variables points to another user folders and what is the good way to fix it. I also believe that I didn&#8217;t specify something properly during creation of a new user (that is why environment variables have not proper values).<\/p>\n<p>The same problem appears when I try for instance to run mc&#8230; I get this:<\/p>\n<pre><code>Cannot create \/home\/roman\/.config\/mc directory\n<\/code><\/pre>\n<p>For more information have this<\/p>\n<p><code>cat \/etc\/passwd | grep developer<\/code><\/p>\n<pre><code>developer:x:1001:27::\/home\/developer:\/bin\/bash\n<\/code><\/pre>\n<p>So, can somebody explain me how to solve my problems?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I want to create a new user and give him possibility to use git. So, I&#8217;ve installed git: sudo apt-get install git After that I&#8217;ve created a user: sudo useradd -d \/home\/developer -s \/bin\/bash -g sudo -m developer And now I have a problem. When I switch to a new user and try to do [&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-6603","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6603","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=6603"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6603\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}