Help with AFS

Atro Tossavainen yellowdog-general@lists.terrasoftsolutions.com
Wed Feb 19 00:29:01 2003


Robert,

>>> Has anyone installed an Andrew File System (AFS) client
>>> under Yellow Dog Linux 2.3?
>>
>> OpenAFS 1.2.8 works fine.  What do you want to know?
> 
> Are there binaries or *.rpm files that I can download?

Apparently not.  You can have the files that I've compiled, but would
you run as root a package that was compiled by a third party completely
unknown to you?

The PPC binaries on the OpenAFS site are for Mac OS X / Darwin, and
the Linux binaries are all for x86.  Fortunately, rolling your own is
very straightforward.

If you're familiar with commercial AFS on other platforms, and simply
want your YDL to act as a "normal" AFS client, download the source kit,
configure and compile it, and instead of "make install", copy only the
necessary files as follows:

./configure --disable-afsdb --enable-transarc-paths --with-afs-sysname=ppc_linux24
make

mkdir /afs /usr/vice /usr/vice/etc /usr/vice/etc/modload /usr/vice/cache
cp src/afsd/afsd /usr/vice/etc
cp src/afsd/afs.conf.linux /etc/sysconfig/afs
cp src/libafs/MODLOAD-*/libafs-*.o /usr/vice/etc/modload
cp src/pam/pam_afs.*so.1 /lib/security
cp src/afsd/afs.rc.linux /etc/init.d/afs
chmod a+rx /etc/init.d/afs
pushd /etc/rc3.d; ln -s ../init.d/afs S99afs; popd
pushd /etc/rc5.d; ln -s ../init.d/afs S99afs; popd
pushd /etc/rc0.d; ln -s ../init.d/afs K66afs; popd
pushd /etc/rc6.d; ln -s ../init.d/afs K66afs; popd
pushd /lib/security
ln -s pam_afs.so.1 pam_afs.so
ln -s pam_afs.krb.so.1 pam_afs.krb.so
popd

/usr/vice/cache has to be on an ext2 partition, but for vanilla YDL
installations that shouldn't be an issue.  (I always bump into this
since I always put ReiserFS on my systems wherever possible.)

All you need after the steps above are a ThisCell, CellServDB, and a
cacheinfo in your /usr/vice/etc, and if you want direct AFS logins,
the necessary changes in /etc/pam.d/(whatever).  Then

	/etc/init.d/afs start

and you're off.

> Do I need to install any security patches if I only need to run the
> client and not the server?

OpenAFS 1.2.8 is the most recent version, there are yet no patches to
it.  Do you mean patches to other software?  Nothing is required, but
why not apt-get update; apt-get upgrade when you can?

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . iki . fi / atro . tossavainen / >

File attachments NOT welcome unless agreed to beforehand.