[OpenAFS] Trouble creating AFS KeyFile on FreeBSD 10.0

Eric Shell eshell@soe.ucsc.edu
Wed, 17 Sep 2014 10:42:02 -0700


--001a11c2bbe8bf4f1d050346628c
Content-Type: text/plain; charset=UTF-8

I'm following the AFS server set up steps at
https://wiki.freebsd.org/afs-server but I'm stuck at the "ktutil copy"
command to create the AFS KeyFile.

When I run "ktutil copy /tmp/afsv5key AFSKEYFILE:/tmp/KeyFile" the
/tmp/KeyFile file is not created.  If I run it with truss I see a bunch of
lines complaining about missing files.

access("/lib/libkadm5clnt.so.11",0)  ERR#2 'No such file or directory'
>
> access("/lib/libkrb5.so.11",0)  ERR#2 'No such file or directory'
>
> access("/lib/libroken.so.11",0)  ERR#2 'No such file or directory'
>
> access("/lib/libasn1.so.11",0)  ERR#2 'No such file or directory'
>
> access("/lib/libcom_err.so.5",0)  ERR#2 'No such file or directory'
>
> access("/usr/lib/private/libhx509.so.11",0) ERR#2 'No such file or
> directory'
>
> access("/lib/libhx509.so.11",0)  ERR#2 'No such file or directory'
>
> access("/usr/lib/private/libwind.so.11",0) ERR#2 'No such file or
> directory'
>
> access("/lib/libwind.so.11",0)  ERR#2 'No such file or directory'
>
> access("/usr/lib/private/libheimbase.so.11",0) ERR#2 'No such file or
> directory'
>
> access("/lib/libheimbase.so.11",0)  ERR#2 'No such file or directory'
>
> readlink("/etc/malloc.conf",0x7fffffffc7d0,1024) ERR#2 'No such file or
> directory'
>
> open("/usr/lib/plugin/krb5",O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,016232627556)
> ERR#2 'No such file or directory'
>
> open("/dev/crypto",O_RDWR,00)  ERR#2 'No such file or directory'
>
> open("/usr/lib/plugin/krb5",O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,011) ERR#2
> 'No such file or directory'
>
> open("/usr/afs/etc/krb.conf",O_RDONLY,0666) ERR#2 'No such file or
> directory'
>
> open("/tmp/KeyFile",O_CLOEXEC,0600)  ERR#2 'No such file or directory'
>
> stat("/usr/share/nls/C/libc.cat",0x7fffffffd308) ERR#2 'No such file or
> directory'
>
> stat("/usr/share/nls/libc/C",0x7fffffffd308) ERR#2 'No such file or
> directory'
>
> stat("/usr/local/share/nls/C/libc.cat",0x7fffffffd308) ERR#2 'No such
> file or directory'
>
> stat("/usr/local/share/nls/libc/C",0x7fffffffd308) ERR#2 'No such file or
> directory'
>
> open("/tmp/KeyFile",O_CLOEXEC,0600)  ERR#2 'No such file or directory'
>
> open("/tmp/KeyFile",O_CLOEXEC,0600)  ERR#2 'No such file or directory'
>

It does copy the file, unmodified, if I omit the AFSKEYFILE: portion.  Am I
missing a required package or something?

-- 
Eric Shell

--001a11c2bbe8bf4f1d050346628c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;m following the AFS server set up steps at=C2=A0<a h=
ref=3D"https://wiki.freebsd.org/afs-server" target=3D"_blank">https://wiki.=
freebsd.org/afs-server</a> but I&#39;m stuck at the &quot;ktutil copy&quot;=
 command to create the AFS KeyFile.<div><br></div><div>When I run &quot;ktu=
til copy /tmp/afsv5key AFSKEYFILE:/tmp/KeyFile&quot; the /tmp/KeyFile file =
is not created. =C2=A0If I run it with truss I see a bunch of lines complai=
ning about missing files.</div><div><br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-co=
lor:rgb(204,204,204);border-left-style:solid;padding-left:1ex">







<p class=3D"">access(&quot;/lib/libkadm5clnt.so.11&quot;,0)<span class=3D""=
>	</span><span class=3D"">	</span> ERR#2 &#39;No such file or directory&#39=
;</p>
<p class=3D"">access(&quot;/lib/libkrb5.so.11&quot;,0)<span class=3D"">	</s=
pan><span class=3D"">	</span><span class=3D"">	</span> ERR#2 &#39;No such f=
ile or directory&#39;</p>
<p class=3D"">access(&quot;/lib/libroken.so.11&quot;,0)<span class=3D"">	</=
span><span class=3D"">	</span><span class=3D"">	</span> ERR#2 &#39;No such =
file or directory&#39;</p>
<p class=3D"">access(&quot;/lib/libasn1.so.11&quot;,0)<span class=3D"">	</s=
pan><span class=3D"">	</span><span class=3D"">	</span> ERR#2 &#39;No such f=
ile or directory&#39;</p>
<p class=3D"">access(&quot;/lib/libcom_err.so.5&quot;,0)<span class=3D"">	<=
/span><span class=3D"">	</span> ERR#2 &#39;No such file or directory&#39;</=
p>
<p class=3D"">access(&quot;/usr/lib/private/libhx509.so.11&quot;,0)<span cl=
ass=3D"">	</span> ERR#2 &#39;No such file or directory&#39;</p>
<p class=3D"">access(&quot;/lib/libhx509.so.11&quot;,0)<span class=3D"">	</=
span><span class=3D"">	</span><span class=3D"">	</span> ERR#2 &#39;No such =
file or directory&#39;</p>
<p class=3D"">access(&quot;/usr/lib/private/libwind.so.11&quot;,0)<span cla=
ss=3D"">	</span> ERR#2 &#39;No such file or directory&#39;</p>
<p class=3D"">access(&quot;/lib/libwind.so.11&quot;,0)<span class=3D"">	</s=
pan><span class=3D"">	</span><span class=3D"">	</span> ERR#2 &#39;No such f=
ile or directory&#39;</p>
<p class=3D"">access(&quot;/usr/lib/private/libheimbase.so.11&quot;,0)<span=
 class=3D"">	</span> ERR#2 &#39;No such file or directory&#39;</p>
<p class=3D"">access(&quot;/lib/libheimbase.so.11&quot;,0)<span class=3D"">=
	</span><span class=3D"">	</span> ERR#2 &#39;No such file or directory&#39;=
</p>
<p class=3D"">readlink(&quot;/etc/malloc.conf&quot;,0x7fffffffc7d0,1024) ER=
R#2 &#39;No such file or directory&#39;</p>
<p class=3D"">open(&quot;/usr/lib/plugin/krb5&quot;,O_NONBLOCK|O_DIRECTORY|=
O_CLOEXEC,016232627556) ERR#2 &#39;No such file or directory&#39;</p>
<p class=3D"">open(&quot;/dev/crypto&quot;,O_RDWR,00)<span class=3D"">	</sp=
an><span class=3D"">	</span><span class=3D"">	</span> ERR#2 &#39;No such fi=
le or directory&#39;</p>
<p class=3D"">open(&quot;/usr/lib/plugin/krb5&quot;,O_NONBLOCK|O_DIRECTORY|=
O_CLOEXEC,011) ERR#2 &#39;No such file or directory&#39;</p>
<p class=3D"">open(&quot;/usr/afs/etc/krb.conf&quot;,O_RDONLY,0666)<span cl=
ass=3D"">	</span> ERR#2 &#39;No such file or directory&#39;</p>
<p class=3D"">open(&quot;/tmp/KeyFile&quot;,O_CLOEXEC,0600)<span class=3D""=
>	</span><span class=3D"">	</span> ERR#2 &#39;No such file or directory&#39=
;</p>
<p class=3D"">stat(&quot;/usr/share/nls/C/<a href=3D"http://libc.cat">libc.=
cat</a>&quot;,0x7fffffffd308) ERR#2 &#39;No such file or directory&#39;</p>
<p class=3D"">stat(&quot;/usr/share/nls/libc/C&quot;,0x7fffffffd308)<span c=
lass=3D"">	</span> ERR#2 &#39;No such file or directory&#39;</p>
<p class=3D"">stat(&quot;/usr/local/share/nls/C/<a href=3D"http://libc.cat"=
>libc.cat</a>&quot;,0x7fffffffd308) ERR#2 &#39;No such file or directory&#3=
9;</p>
<p class=3D"">stat(&quot;/usr/local/share/nls/libc/C&quot;,0x7fffffffd308) =
ERR#2 &#39;No such file or directory&#39;</p>
<p class=3D"">open(&quot;/tmp/KeyFile&quot;,O_CLOEXEC,0600)<span class=3D""=
>	</span><span class=3D"">	</span> ERR#2 &#39;No such file or directory&#39=
;</p>
<p class=3D"">open(&quot;/tmp/KeyFile&quot;,O_CLOEXEC,0600)<span class=3D""=
>	</span><span class=3D"">	</span> ERR#2 &#39;No such file or directory&#39=
;</p></blockquote><div><div><br></div><div>It does copy the file, unmodifie=
d, if I omit the AFSKEYFILE: portion. =C2=A0Am I missing a required package=
 or something?</div><div><br></div>-- <br><div dir=3D"ltr"><span></span>Eri=
c Shell<br></div><div dir=3D"ltr"><br></div>
</div></div>

--001a11c2bbe8bf4f1d050346628c--