openstack installation stack user permission denied
I am a beginner in OpenStack Technologies in everyway. And I am trying to install this for my learning of this technology. I tried installing openstack in CentOS version 7 Operating System. How I tried installing this is by referring http://devstack.org/ (here). When I was cloning the repository, I was a root user and so it was cloned to the location /root/devstack. But then while installing the same, I got an error which then googled I could find that installing can't be done as root user. So, I tried creating a user and a group in the name "stack" and given permissions in this devstack folder to stack user. But then also when I tried installing it displays "permission denied."
What could be the issue? Do I want to clone the repo again to other location something like /opt/devstack? Can someone please help me on this.? Not sure whether this is enough for you to answer my question. Please ask if any more info needed..