Set the permission for a folder in aws when the directory is using laravel file storage?

0 votes

I am using Storage::disk() to store file or retrieve file in laravel and there is some issue during setup of aws server.

Storage::disk('backup_uploads')->put('/try/'.'abcc.txt', 'abcc');

Whenever the directories created the file is not allowed to be deleted.

The permission auto set to

Permission for 'try' folder : drwxr-xr-x

My user and group should be

ec2-user/ec2user

but the 'try' folder directories show

apache/apache

How i can create the directories using the method above and always make it full accessible. Let the permission to be drwxrwxrwx.

Thanks.

Oct 22, 2018 in AWS by findingbugs
• 4,730 points
115 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

you need the chown -R not the chmod to change the owner to whatever apache needs to be i believe its www-data

before running the cron job can you run the chown and chmod on it? as a quick fix, you should investigate how to create the folder with a certain permission etc. i believe the laravel Storage have a helper method for that 

answered Oct 22, 2018 by Priyaj
• 56,120 points

Related Questions In AWS

0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 3,770 points
1,559 views
0 votes
1 answer

How to skip headers when reading a CSV file in S3 and creating a table in AWS Athena?

This is a known deficiency. The best ...READ MORE

answered Sep 4, 2018 in AWS by Archana
• 3,770 points
486 views
0 votes
1 answer

What is the maximum storage capacity of a node in Redshift?

You can create a cluster using either ...READ MORE

answered Oct 26, 2018 in AWS by Archana
• 5,360 points
76 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.