I'm creating a Django app who can access to the user home directory. For this purpose I want to create a directory using something like os.mkdir('/home/user/new_directory')
or a subprocess command.
Because Django is started by an apache server, python act as the apache user and can't access to my users home directories.
Currently, I know the login of my users because they have to be logged on the website. Is there a solution to perform unix commands from Django/Python in the name of the user ?