
Chapter 3. Exploiting Network Authentication Service 115
Example 3-14 Stand-alone client setup
nascli# mkkrb5clnt -r NASREALM.SGC.COM -c nassrv.sgc.com -s nassrv.sgc.com -d
sgc.com -A -i files -K -T
nascli# chauthent -k5 -std
nascli# mkuser eddie
nascli# ln -s /var/krb5/security/keytab/nascli.sgc.com.keytab
/etc/krb5/krb5.keytab
nascli# kinit admin/admin
nascli# kadmin
kadmin: add_principal -randkey ftp/nascli.sgc.com
kadmin: ktadd ftp/nascli.sgc.com
kadmin: quit
3.3.12 Testing the user and services on the new host
If all is working correctly, you can log in using a password stored by Kerberos,
and gain the credentials to use rlogin, rsh, rcp, telne