All Products
Search
Document Center

Object Storage Service:Configure mount point permissions

Last Updated:Sep 16, 2025

This topic describes how to use parameters to configure user access permissions for a mount point when you mount a bucket using ossfs.

Prerequisites

Scenarios

  1. Share access permissions for the mount point directory: Allow other users to access the mount point directory.

  2. Share access permissions for the mount point directory and its files: Allow all users to access the mount point directory and to read, write, and execute the files within it.

  3. Share access permissions for the mount point directory and customize file permissions: Allow other users to access the mount point directory and set custom permissions for different users to access files within the mount point.

Parameters

Option

Description

allow_other

Grants other users on the computer access permissions to the mount directory, but not to the files within it. To change file access permissions in the directory, use the chmod command. This option does not require a value. To enable it, add the -oallow_other option.

umask

Sets the permission mask for files and directories within the mount point.

For example, to set permissions to 770, add -oumask=007. To set permissions to 700, add -oumask=077.

Mounting examples

  • Share access permissions for the mount point directory

    To mount an OSS bucket named mybucket to the local /mnt/oss directory and allow other users to access this directory, run the following command.

    ossfs mybucket /mnt/oss -ourl=http://oss-cn-****.aliyuncs.com -oallow_other
  • Setting access permissions for a mount point directory and its files

    To mount the OSS bucket mybucket to the local /mnt/oss directory and grant all users permission to access the directory and read, write, and execute the files within it, run the following command.

    ossfs mybucket /mnt/oss -ourl=http://oss-cn-****.aliyuncs.com -oallow_other -oumask=000
  • Share access permissions for the mount point directory and customize file permissions

    Note

    You can customize the -oumask parameter value to grant different file access permissions to different users within the mount point.

    To mount an OSS bucket named mybucket to the local /mnt/oss directory, allow other users to access the directory, and grant read and write permissions for files only to the owner and group, run the following command.

    ossfs mybucket /mnt/oss -ourl=http://oss-cn-****.aliyuncs.com -oallow_other -oumask=007