I have an issue with cloning a git repository (Devstack) as another user. I'm currently logged in as Administrator, but because I need to install Devstack as another user I want to execute all commands as 'Devstack' user. Therefor I would like to execute these commands through my admin account by using the 'su' command. Everything seems to work except this one, I don't know what I do wrong here. Let's hope some of you could help me?
I will put the code under this sentence and I hope one of you could help me?
code: sudo su -l devstack -c "git clone https://git.openstack.org/openstack-dev/devstack"
SOLVED!