Granting Additional Users Access to the Shared Storage (Linux)

For Cloud Server

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.

  • 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:
    crontab -e -u user
    crontab -e -u apache


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
    * */4 * * * kinit nfs/uid285639.nas3.lan@NAS3.LAN -kt /etc/krb5.keytab

The user is granted access to the shared storage.