Kerberos kinit enter password without prompt

user754905 picture user754905 · Nov 16, 2011 · Viewed 41.4k times · Source

I was looking at this: http://docs.oracle.com/javase/7/docs/technotes/tools/windows/kinit.html and noticed that it says I could use the "password flag". I am not sure how to do this though?

Can I enter the password for kinit without it prompting me?

For example currently:

If I type in:

$ kinit test@REALM

I get response:

test@REALM's password: 

and I have to enter the password. Is there anyway I can input something like kinit test@REALM password so it doesn't prompt me?

Answer

user2939990 picture user2939990 · Dec 4, 2013

Also you can

$ echo 'password' | kinit username