When I switch from root user to a user (automatically created when installing git-auto-deploy) with
sudo -u git-auto-deploy /bin/bash I always get this error:
bash: /root/.bashrc: Permission denied
I created a user home directory, and put a
.profile in it with the following (ran
source on it too):
finger git-auto-deploy gives the following output:
Login: git-auto-deploy Name: Directory: /srv/users/git-auto-deploy Shell: /bin/bash Never logged in.
When logged in as this user, the
env command still lists incorrect directory:
What am I doing wrong?