[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'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'm stuck at the "ktutil copy"=
command to create the AFS KeyFile.<div><br></div><div>When I run "ktu=
til copy /tmp/afsv5key AFSKEYFILE:/tmp/KeyFile" 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("/lib/libkadm5clnt.so.11",0)<span class=3D""=
> </span><span class=3D""> </span> ERR#2 'No such file or directory'=
;</p>
<p class=3D"">access("/lib/libkrb5.so.11",0)<span class=3D""> </s=
pan><span class=3D""> </span><span class=3D""> </span> ERR#2 'No such f=
ile or directory'</p>
<p class=3D"">access("/lib/libroken.so.11",0)<span class=3D""> </=
span><span class=3D""> </span><span class=3D""> </span> ERR#2 'No such =
file or directory'</p>
<p class=3D"">access("/lib/libasn1.so.11",0)<span class=3D""> </s=
pan><span class=3D""> </span><span class=3D""> </span> ERR#2 'No such f=
ile or directory'</p>
<p class=3D"">access("/lib/libcom_err.so.5",0)<span class=3D""> <=
/span><span class=3D""> </span> ERR#2 'No such file or directory'</=
p>
<p class=3D"">access("/usr/lib/private/libhx509.so.11",0)<span cl=
ass=3D""> </span> ERR#2 'No such file or directory'</p>
<p class=3D"">access("/lib/libhx509.so.11",0)<span class=3D""> </=
span><span class=3D""> </span><span class=3D""> </span> ERR#2 'No such =
file or directory'</p>
<p class=3D"">access("/usr/lib/private/libwind.so.11",0)<span cla=
ss=3D""> </span> ERR#2 'No such file or directory'</p>
<p class=3D"">access("/lib/libwind.so.11",0)<span class=3D""> </s=
pan><span class=3D""> </span><span class=3D""> </span> ERR#2 'No such f=
ile or directory'</p>
<p class=3D"">access("/usr/lib/private/libheimbase.so.11",0)<span=
class=3D""> </span> ERR#2 'No such file or directory'</p>
<p class=3D"">access("/lib/libheimbase.so.11",0)<span class=3D"">=
</span><span class=3D""> </span> ERR#2 'No such file or directory'=
</p>
<p class=3D"">readlink("/etc/malloc.conf",0x7fffffffc7d0,1024) ER=
R#2 'No such file or directory'</p>
<p class=3D"">open("/usr/lib/plugin/krb5",O_NONBLOCK|O_DIRECTORY|=
O_CLOEXEC,016232627556) ERR#2 'No such file or directory'</p>
<p class=3D"">open("/dev/crypto",O_RDWR,00)<span class=3D""> </sp=
an><span class=3D""> </span><span class=3D""> </span> ERR#2 'No such fi=
le or directory'</p>
<p class=3D"">open("/usr/lib/plugin/krb5",O_NONBLOCK|O_DIRECTORY|=
O_CLOEXEC,011) ERR#2 'No such file or directory'</p>
<p class=3D"">open("/usr/afs/etc/krb.conf",O_RDONLY,0666)<span cl=
ass=3D""> </span> ERR#2 'No such file or directory'</p>
<p class=3D"">open("/tmp/KeyFile",O_CLOEXEC,0600)<span class=3D""=
> </span><span class=3D""> </span> ERR#2 'No such file or directory'=
;</p>
<p class=3D"">stat("/usr/share/nls/C/<a href=3D"http://libc.cat">libc.=
cat</a>",0x7fffffffd308) ERR#2 'No such file or directory'</p>
<p class=3D"">stat("/usr/share/nls/libc/C",0x7fffffffd308)<span c=
lass=3D""> </span> ERR#2 'No such file or directory'</p>
<p class=3D"">stat("/usr/local/share/nls/C/<a href=3D"http://libc.cat"=
>libc.cat</a>",0x7fffffffd308) ERR#2 'No such file or directory=
9;</p>
<p class=3D"">stat("/usr/local/share/nls/libc/C",0x7fffffffd308) =
ERR#2 'No such file or directory'</p>
<p class=3D"">open("/tmp/KeyFile",O_CLOEXEC,0600)<span class=3D""=
> </span><span class=3D""> </span> ERR#2 'No such file or directory'=
;</p>
<p class=3D"">open("/tmp/KeyFile",O_CLOEXEC,0600)<span class=3D""=
> </span><span class=3D""> </span> ERR#2 'No such file or directory'=
;</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--