FSx for Lustre Mount Permissions for EC2 User

0

We're testing the waters with FSx Lustre. I have successfully mounted an FSx Lustre file system on a 20.04 Ubuntu EC2 using:

sudo mount -t lustre -o relatime,flock fs-876ac86ac865f978.fsx.ap-southeast-2.amazonaws.com@tcp:/hgd765f4 /fsx

However, the default EC2 user, ubuntu, has no rights to the file system. Only root does.

How do I mount the file system in such a way that ubuntu has R/W to it, or do I need to use facl or similar to modify the file system after mounting?

질문됨 5달 전386회 조회
2개 답변
0
수락된 답변

Fixed it with setfacl:

sudo setfacl -R -m u:ubuntu:rwx /fsx
답변함 5달 전
0

Hello,

You can grant other users permissions to the FSx for Lustre file system by editing either the ownership or the POSIX permissions of the mount point (for eg., /fsx).

A user with root privileges can grant other users access to the file system as follows:

  1. To change the ownership to a non-root user and group, use the following:
$ sudo chown user:group /fsx

For example:

sudo chown ubuntu:ubuntu /fsx
  1. To change permissions of the file system to something more permissive, use the following:
$ sudo chmod 777 /fsx

This would then apply to all EC2 instances that have the file system mounted.

AWS
지원 엔지니어
답변함 5달 전
  • Unfortunately that doesn't work. The permissions assigned to the mount point get overwritten when the file system get mounted.

    Before mount: drwxrwxrwx 2 ubuntu ubuntu 4096 Dec 6 21:41 fsx/

    After mount: drwxr-xr-x 4 root root 33280 Dec 5 22:18 fsx/

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠