php version => PHP 7.4.23 (cli) laravel version => Laravel Framework 7.30.4
Asked
Active
Viewed 189 times
0
-
Does https://stackoverflow.com/questions/36455888/how-can-i-give-permissions-to-specific-folders-on-heroku help? – apokryfos Sep 01 '21 at 11:15
-
no its not working. – Abhishek Sep 01 '21 at 11:39
-
Please do not share images of stuff that could be shared in text form. Also, what have you tried to resolve your problem? – Nico Haase Sep 01 '21 at 11:50
2 Answers
1
$USER
is a special shell variable (also referred to as an enviroment variable) that will always contain the username of the user running the process.
$user
is a different (and empty) variable.

Private_GER
- 185
- 2
- 12
-
-
You're running as a user that isn't allowed to change the file permissions. Use sudo or another user that does have access to the files. – Private_GER Sep 02 '21 at 06:22
-
sudo command is not working in heroku and i try all user list but this app show the same error on every user. – Abhishek Sep 02 '21 at 13:41
-
Well, what is the folder owned by? Run ``ls -la`` and take a look. – Private_GER Sep 03 '21 at 08:19
0
User variable is written in capital letters
chown -R $USER:www-data storage

Andrey Shchedrin
- 70
- 4
-
1Please add some explanation to your answer such that others can learn from it – Nico Haase Sep 01 '21 at 11:50