Python Forum

Full Version: password exit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi I am pretty new at python and this is out of my knowledge so far. I have a script that I am using to run commands on a Centos system. The commands run when I am logged in as root (ssh). I created a new user to and tried to edit the sudoers file with VI but for some reason I am not getting the right access. So I have another idea. Is there a way to login as root, automatically run my script and block ANY form or exiting the script without a password? In other words they are locked into the script unless they enter a password and then the script exits. If this is possible that would be great.

Thanks