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.
Log in to the server as administrator.
To open the crontab, enter the following command:
When calling up crontab -e, the vi editor is called up. This editor has an instruction or command mode and an insert mode. You can enter the insert mode by entering a corresponding command. In most cases, this is i (insert) or the Insert key.
To add a Cronjob that regularly renews the Kerberos key for the corresponding user, enter the following command:
* */4 * * * user kinit nfs/uid285639.nas3.lan@NAS3.LAN -kt /etc/krb5.keytab
* */4 * * * apache kinit nfs/uid285639.nas3.lan@NAS3.LAN -kt /etc/krb5.keytab
To give the user reading rights to the etc/krb5.keytab file, enter the following command:
chmod 644 /etc/krb5.keytab