>> >> Am I asking something stupid? How do you securely transfer a keytab >> for the host principal to the host? "ktutil get" does just that. >> > Is 'kadmin -q "ktadd /tmp/keytab" ' what you're looking for? I think what Victor actually ask is a single command to do something like kadmin -q "addprinc -randkey `hostname -f`" && kadmin -q "ktadd `hostame -f`" Javier Palacios