Automate Kerboer kinit password


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Automate Kerboer kinit password
# 1  
Old 01-10-2011
Automate Kerboer kinit password

Hi,

I just wonder if anyone know how to auto encode the kerberos kinit password at prompt.

kinit command is inside the one of the script called runscript.sh

so ./runscript.sh
......
kinit username
Password for username@example.com:

How do I auto input the password without need to type it.

I know expect can work but expect it's not an option.

Thanks!
# 2  
Old 01-10-2011
Well, programs often read passwords direct from /dev/tty, not stdin, so you need a pseudo tty like expect or ssh2 to get stdin back in play. Storing passwords in plain text files is not a nice idea, either. Why is expect not an option?
# 3  
Old 01-10-2011
that really defeats the purpose of using Kerberos.
# 4  
Old 01-10-2011
I found this, that apparently I asked...

http://fixunix.com/kerberos/60234-us...lent-krb5.html
# 5  
Old 01-10-2011
Oh, i have the same problem ,
Thank you for your link
# 6  
Old 01-11-2011
Yes, it is frightening that keys are making passwords unnecessary with such frequency.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Password sent via reset password email is 'weak' and won't allow me to change my password

I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login. Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies

2. AIX

Testing Kerberos with kinit comand

I am working on an AIX 6.1 system with Kerberos 1.5.0.8. I am attempting to execute the kinit command but after I execute the command and put in a password I get the following error message: Unable to obtain initial credentials Status 0x96c73a18 - Preauthentication failed. I have found... (0 Replies)
Discussion started by: kstalder
0 Replies

3. Shell Programming and Scripting

How to view the cron jobs that ran on kinit i keep getting must be privileged to use -u?

How to view the cron jobs that ran on kinit i keep getting must be privileged to use -u this is the control used, echo 'cat /usr/local/bin/tpthadoop/secret/hadoop.txt' | kinit hdfs what happens with above command kinit is using kerberos and the account used to run the processes jobs are... (1 Reply)
Discussion started by: cplusplus1
1 Replies

4. Shell Programming and Scripting

Problem to automate the change password

Hi. I know how to get new password from input file which have till Dec 2014 passwords with today's date, i want to change my password everyday for which i know how to set cron job that will run everyday in morning. once it is changed it should e-mail me if it successful or not. Can someone... (0 Replies)
Discussion started by: rajjev_saini123
0 Replies

5. UNIX for Advanced & Expert Users

Can we Automate the User creation and setting password through a script in solaris 10

Hi, I am using Solaris 10 OS and Bash shell.Is there any way can we automate User creation and setting passwords through a script or any freeware tool. Advance thanks for your response. (1 Reply)
Discussion started by: muraliinfy04
1 Replies

6. UNIX for Advanced & Expert Users

kinit auditing

I have implemented solaris login authenticating against an active directory server, using solaris x86 on a Dell R810 8xXeon CPUs and 262Gb RAM. The actual OS is: # uname -a SunOS ms-svr012 5.10 Generic_142910-17 i86pc i386 i86pc # cat /etc/release Oracle Solaris 10 9/10... (2 Replies)
Discussion started by: jabberwocky
2 Replies

7. Shell Programming and Scripting

To automate a process

CAN ANYONE HELP TO SOLVE i wann write a script to automate a process .i.e, to search files in the FTP server and and if files are there and we hav to bring that files to our system. After copying the files in our system we have to upload the data in the tables. I have scripts to load the... (0 Replies)
Discussion started by: nani1984
0 Replies

8. UNIX for Dummies Questions & Answers

kinit

Hi, I have tried a lot online to find about this command. I coudnt find a satisfactory explanation. I need some background on kinit command. Can someone please explain it? (2 Replies)
Discussion started by: grep_me
2 Replies

9. Shell Programming and Scripting

How to automate responses

I would have searched for this but I couldn't really think of what to use for the search text... I've got a situation where I need to automate responses to an executable when running it from a script so that it can be made into a job the operators don't have to interact with. When I run it... (2 Replies)
Discussion started by: djp
2 Replies

10. UNIX for Advanced & Expert Users

Su To Diffent Account And Automate The Password

I Need To Switch To A Different Account Before A Shell Is Executed. Unforturnately I Have To Call This Shell Via A Third Party App And The User Account Of The Processes That I Need To Kill Is Not The Same As The Default Account Gui Signs In As. I Need The Password To Be Hard Coded When Prompted... (3 Replies)
Discussion started by: kingoice
3 Replies
Login or Register to Ask a Question