A developer has created a file system in Oracle Cloud Infrastructure (OCI) File Storage service.
She launches an Oracle Linux compute instance and successfully mounts the file system from the instance.
She then tries writing to the file system from the compute instance using the following command: touch /mnt/yourmountpoint/helloworld But gets an error message: touch: cannot touch '/mnt/yourmountpoint/helloworrld': Permission denied Which is a reason for this error? (Choose the best answer.)
Click on the arrows to vote for the correct answer
A. B. C. D.C.
https://itectec.com/unixlinux/touch-cannot-touch-test-permission-denied/The reason for the error message touch: cannot touch '/mnt/yourmountpoint/helloworld': Permission denied
is that the user does not have the necessary permissions to write to the mount point of the File Storage service.
Option A, that the touch
command is not available in Oracle Linux by default, is not the reason for the error. The touch
command is a standard Unix/Linux command used to create an empty file or update the modification time of an existing file, and is available in Oracle Linux.
Option B, that the service limits or quota for file system writes have been breached, is also not the reason for the error. If the user had exceeded the limits or quota, they would receive a different error message that indicates this.
Option D, that the user is connecting as the default Oracle Linux user 'opc' instead of 'root' user, is not relevant to the issue at hand. The user can still write to the mount point as long as they have the necessary permissions, regardless of the user account they are using.
The most likely reason for the error is option C, that the user is not part of any OCI Identity and Access Management (IAM) group with write permissions to the File Storage service. By default, when a File Storage service is created in OCI, it is only accessible by the user who created it. To allow other users to access the file system, the owner must configure access using IAM policies.
To resolve this issue, the user needs to ensure that they have been granted the necessary IAM permissions to write to the File Storage service mount point. This can be done by the owner of the File Storage service, who can create an IAM policy that grants write permissions to the mount point to the relevant IAM group or user. Once the necessary permissions are granted, the user should be able to successfully write to the mount point using the touch
command.