2

I use sudo a lot and I am constantly having to restart my terminal (development of programs that froze usually) and it's a pain in the butt to constantly put in the sudo command and then my password. Is there a way I could through Python (or a script file) get an already sudo terminal?

I wasn't sure if I should post it on Stack Overflow (because of the coding side) or here (because of sudo/terminal stuff).

Thomas Ward
  • 78,878

1 Answers1

3

You should read this question, because running ANYTHING as root within a script or other piece of software that COULD be run without the administrator's knowledge is a very very dangerous and bad thing.

As well, running your system in a root terminal just to run a script is also equally dangerous.

(whether you know the security implications or not, question poster, others probably won't, hence this answer)

Thomas Ward
  • 78,878