Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
password exit
#1
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python difference between sys.exit and exit() mg24 1 1,823 Nov-12-2022, 01:37 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020