Tags » Sudo

Use sudo with Python shell scripts

Sometimes we need to call external tools in Python scripts. But, for a given external tool, if root permission is required, it must be executed indirectly with the help of sudo, and that results in an interactive prompt for the sudo password. 475 more words

Pexpect

Using sudo with a simple example

I won’t try to define `sudo’ command exactly, basically it provides privileges to users into a Unix* environment.

In a desktop computer is just useful, and it makes us save time avoiding switch to root user every time we want to do a system, networking, or some other managing stuffs. 345 more words

Scripting