I want to create a new user and give him possibility to use git. So, I've installed git:
sudo apt-get install git
After that I'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 something like this:
git clone <<here is a path>>
I get this error message:
fatal: unable to access '/home/roman/.config/git/config': Permission denied
I can'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't specify something properly during creation of a new user (that is why environment variables have not proper values).
The same problem appears when I try for instance to run mc... I get this:
Cannot create /home/roman/.config/mc directory
For more information have this
cat /etc/passwd | grep developer
So, can somebody explain me how to solve my problems?