I am trying to perform a recursive distribution of permissions for all users for the / myFolder / path directory:
big_chmod = 'sudo chmod -R 777 /myFolder/path' print subprocess.Popen(big_chmod, shell=True, stdout=subprocess.PIPE).stdout.read() I get the error:
sudo: no tty present and no askpass program specified
Please tell me why this command does not work, and what is the best way to execute it from Python code?