I use the following script to change Open Directory (Apple's LDAP) passwords.
Hello,
I have a python script (not created by me), let's call it myscript, which I call with several parameters. If I don't provide the --password parameter, the script will ask the user to input the password.
So I run the script like this:
Code:
/wherever/myscript --username=whoever /some/other/path/parameter
That makes it ask for a password and wait for user input.
As part of trying to implement a security measure in my root ssh session, I'm trying to devise a method of starting a script after n seconds of root user login, and change the user password and logout the user automatically.
I'm getting stuck at trying to change the password silently.
After run my script, i am giving my password as input to script.
First script validates if my given password is correct and then script should start remaining process
In my script.
echo -n "Enter Password: "
stty -echo
read passwd
stty echo
#Here i want to evaluate $passwd having corresponding user's system password or not
# <Then some process start>
Hello All,
I am writing an Expect Script to execute some commands over ssh then exit the script.
The script works just fine if I automate everything and assuming the correct password was entered.
So this Expect Script gets executed from a Bash script...
I write the active.ksh script (based on expect) in order to login automatically to some Solaris machine and execute the hostname command (login to virtual IP in order to verify which hostname is the active machine - I have two cluster solaris machines )
The problem is with expect; expect sends the password string (pass123) and it misses the Password question, and it still waits for the password.
Hi there,
I am new to scripting, please advise.
I have a script running on the PC server, the script is to log on some ip to get something.
script-name IP -l username
after running the command, I need to type the password for the script to run.
Now, I like to change the script to web cgi script, I can get the IP from the web page, hardcode the uername, but not sure how to give the cg
I have this command that i am calling from php (exec()):
Code:
openssl pkcs12 -export -in cert.pem -inkey key.pem -out cred.p12
and then i need to insert password twice
Enter Export Password:
Verifying - Enter Export Password:
I need script that will fill the password inputs,because exec() will only do that command, but not insert password twice.
I am trying to build and expect script to log into multiple aix boxes and change password.