I am trying to run Python CGI script. The issue I am facing is, I need to create a directory and clone repo from git with my username.
import commands, os
print "Content-type: text/html\n"
commands.getoutput("rm -rf fresh-cloned")
commands.getoutput("git clone <> -b <>")
drwxr-xr-x 2 www-data www-data 4.0K Nov 28 16:59 fresh-cloned
I was able to resolve the issue by changing following line in "/etc/passwd"
I created/updated user, gave required permissions, created ssh key and added in stash, it is working now. Thanks!