Edit metadata defaults for your NFS file share - Amazon Storage Gateway
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Edit metadata defaults for your NFS file share

If you don't set metadata values for your files or directories in your bucket, your S3 File Gateway sets default metadata values. These values include Unix permissions for files and folders. You can edit the metadata defaults on the Storage Gateway console.

When your S3 File Gateway stores files and folders in Amazon S3, the Unix file permissions are stored in object metadata. When your S3 File Gateway discovers objects that weren't stored by the S3 File Gateway, these objects are assigned default Unix file permissions. You can find the default Unix permissions in the following table.

Metadata Description
Directory permissions

The Unix directory mode in the form "nnnn". For example, "0666" represents the access mode for all directories inside the file share. The default value is 0777.

File permissions

The Unix file mode in the form "nnnn". For example, "0666" represents the file mode inside the file share. The default value is 0666.

User ID

The default owner ID for files in the file share. The default value is 65534.

Group ID The default group ID for the file share. The default value is 65534.
To edit metadata defaults
  1. Open the Storage Gateway console at https://console.amazonaws.cn/storagegateway/home.

  2. Choose File shares, and then choose the file share that you want to update.

  3. For Actions, choose Edit file metadata defaults.

  4. In the Edit file metadata defaults dialog box, provide the metadata information and choose Save.