Granting Additional Users Access to the Shared Storage (Linux)
Please use the “Print” function at the bottom of the page to create a PDF.
For Servers which are managed in the Cloud Panel
This article will show you how to give more users access to the shared storage.
To grant other users, such as Apache users, access to shared storage, you need to periodically renew the Kerberos key for each user.
Requirements
You have created the shared storage in the Cloud Panel and configured the access permissions for the desired server.
You have noted the NFS path displayed in the Cloud Panel.
You have downloaded the Kerberos key from the Cloud Panel and saved it on the server.
You have integrated the shared storage on the server.
You have assigned superuser rights to the additional user.
Log in to the server as an administrator.
To open crontab, enter the following command:
sudo crontab -e -u user
Example:
sudo crontab -e -u apache
After entering the command, the following message will be displayed:
no crontab for maxmustermann - using an empty one
Select an editor. To change later, run 'select-editor'.
1. /bin/nano <---- easiest
2. /usr/bin/vim.basic
3. /usr/bin/vim.tiny
4. /bin/edSelect the editor vim.basic.
If the editor vim is not installed, you can install it using the following commands:
CentOS 7, CentOS Stream 8 and 9yum update -y
yum install vim-enhanced –yUbuntu 18.04, Ubuntu 20.04, Ubuntu 22.04
sudo apt update
sudo apt upgrade
sudo apt search vim
sudo apt install vim
Note
After entering this command, the editor vi is called. The vi editor has an insert mode and a command mode. You can enter the insert mode with the [i] key. In this mode, the entered characters are immediately inserted into the text. To enter the command mode, press [ESC]. When you use command mode, your keyboard input is interpreted as a command. To exit vi and save the file, type the command :wq and then press Enter.
To add a cronjob that regularly renews the Kerberos key for the corresponding user, enter the following command:
* */4 * * * kinit nfs/uid285639.nas3.lan@NAS3.LAN -kt /etc/krb5.keytab
Example:
* */4 * * * kinit nfs/uid285639.nas3.lan@NAS3.LAN -kt /etc/krb5.keytab
To save the changes, press the ESC key and enter :wq. Then press Enter.
The user is granted access to the shared storage.