Python Forum
Automatic user/password entry on prompt by bash script
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatic user/password entry on prompt by bash script
#1
Hi,

im tryin to build a project where i would like to enter the password/user automatically when i run as bash script through my python scrtipt, can I do this without using pexpect ?

Wall Wall Wall Wall Wall
Reply
#2
none of your stuff can be accessed before you login. are you wanting to let anyone who tries that user name to be logged in without entering a password? that's not really a Python question.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#3
No Im already logged in, but afterwards when I run this script a user/password is demanded, I want them to come from my python code
Reply
#4
then we will need to see the code to understand what is being run to prompt for the password. usually this will still involve how passwords are read on your platform. is it Windows? Linux? Mac?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems passing arguments containing spaces to bash script and then on to python kaustin 6 401 Apr-03-2024, 08:26 PM
Last Post: deanhystad
Information automatic document renaming lisa_d 2 348 Mar-20-2024, 06:34 PM
Last Post: Pedroski55
  math formula does not give the same result as bash script [SOLVED] AlphaInc 3 974 Apr-02-2023, 07:21 PM
Last Post: AlphaInc
  Matplotlib - automatic update frohr 1 1,105 Mar-29-2022, 07:05 PM
Last Post: deanhystad
  Randomizer script to provide options based on user and priority cubangt 10 2,463 Mar-11-2022, 07:22 PM
Last Post: cubangt
  automatic create folders Mr_Kool 4 1,767 Dec-21-2021, 04:38 PM
Last Post: BashBedlam
  Call a bash script from within a Python programme Pedroski55 6 2,463 Dec-06-2021, 01:53 PM
Last Post: DeaD_EyE
  need to skip password prompt, continue... tester_V 2 1,473 Oct-19-2021, 05:49 PM
Last Post: tester_V
  Creating a calculation based on user entry blakefindlay 2 2,018 Jan-26-2021, 06:21 PM
Last Post: blakefindlay
  [SOLVED] Requiring help running an old Python script (non Python savvy user) Miletkir 13 5,447 Jan-16-2021, 10:20 PM
Last Post: Miletkir

Forum Jump:

User Panel Messages

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