Page Content
Step 1
Install the OpenAFS modules with the following command:
sudo apt-get install krb5-user openafs-modules-dkms openafs-client openafs-krb5
Step 2
Please use the following configuration for the setup:
Default realm for Kerberos Version 5 | TU-BERLIN.DE |
---|---|
AFS cell of the workstation | tu-berlin.de |
Size of AFS-Cache | 512000 |
The following command allows you to change the configuration at a later point:
sudo dpkg-reconfigure -plow openafs-client
Step 3
Run these commands:
sudo wget www.tubit.tu-berlin.de/fileadmin/a40000000/tubIT/afs/ubuntu_krb5.conf -O /etc/krb5.conf
sudo wget www.tubit.tu-berlin.de/fileadmin/a40000000/tubIT/afs/CellServDB -P /etc/openafs/
Step 4
You can start the AFS client with this command:
sudo service openafs-client start
If you get the following error message, please follow the instructions of OpenAFS with Ubuntu 14.04LTS:
AFS module /lib/modules/<kernel version>-generic/fs/openafs.ko does not exist. Not starting AFS.
This error is typical for Ubuntu 14.04LTS with kernel version 4.x.
Step 5
The configuration is finished now. With the following two commands you can sign in to the AFS service. These commands have to be entered before any new session.
kinit username
aklog
You can find your user directory here:
/afs/tu-berlin.de/home/"1st character of your username"/"username"
User rights
The user rights can be displayed with the command
fs listacl
The rights can be changed with
fs setacl
A description of these commands (with examples) can be found in the MAN pages
man fs_listacl
man fs_setacl
OpenAFS with Ubuntu 14.04LTS
To install OpenAFS with Ubuntu 14.04LTS you have to install more recent packages of openafs. Therefor add the launchpad openafs stable releases (https://launchpad.net/) to your system with the following command:
sudo add-apt-repository ppa:openafs/stable
and accept the query with enter. Afterwards reinstall the affected packages:
sudo apt-get install openafs-modules-dkms openafs-client openafs-krb5
and stick to the guide again.