2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
1
It's possible that you are trying to create the directory as a non-root user, while /mnt/efs/fs1 is owned by root.
Please see https://docs.aws.amazon.com/efs/latest/ug/accessing-fs-nfs-permissions.html - you can either change the permissions on your directory as root (with sudo) or use an access point.
1
If you want to create a folder inside the EFS volume that is owned by a user on the EC2 instance, you could do the following (assuming you are logged in as ec2-user):
- cd /mnt/efs/fs1
- sudo mkdir your-folder-name
- chown -R ec2-user:ec2-user your-folder-name
This will use root privileges to create new folder within the EFS volume and then assign ownership to another user, in this case the default ec2-user that you will get when you create an EC2 instance using Amazon Linux 2.
respondido hace 3 años
Contenido relevante
- Como solucionar el error: Supplied Policy document is breaching Cloudwatch Logs policy length limit.Respuesta aceptadapreguntada hace 16 días
- preguntada hace un mes
- preguntada hace 9 días
- preguntada hace un mes
- OFICIAL DE AWSActualizada hace 4 meses
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace 7 meses
- OFICIAL DE AWSActualizada hace un año
need to preface chown with sudo as well