Thing is, if I do try to execute any sudo command ( shell.exec("sudo xxx") ) I get this error:
"sudo: sorry, you must have a tty to run sudo"
which, tells me I should disable tty requirement, but that is a security violation. Essentially I'm trying to execute various tasks as various users (using su username). Is there any other suggested way to do that?