Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override_file_permissions not working #123

Open
eduardoarandah opened this issue Jul 8, 2017 · 1 comment
Open

override_file_permissions not working #123

eduardoarandah opened this issue Jul 8, 2017 · 1 comment

Comments

@eduardoarandah
Copy link

Developing on windows with wamp, fresh install

setup:

/config/laravel-stapler/filesystem.php

'override_file_permissions' => 0777,

then:

php artisan config:clear

however, files are stored with strange permissions

$ ls -alh public/system/App/User/avatars/000/000/011/thumb/
total 4,0K
drwxrwx---+ 1 Administradores SYSTEM 0 jul. 7 20:45 .
drwxrwx---+ 1 Administradores SYSTEM 0 jul. 7 20:45 ..
-rw-r----- 1 Unknown+User Unknown+Group 2,1K jul. 7 20:45 01.jpg

already tried this with no luck

'override_file_permissions' => null,
'override_file_permissions' => false,

how to debug?

@eduardoarandah
Copy link
Author

I made this repository with a very simple test case

(one model with one field)

https://bitbucket.org/eduardoarandah/laravel-stapler-test

Windows 10 + Wampserver 3.0.0 fails

it ignores override_file_permissions and creates folder with permissions "Administradores SYSTEM"

ll public/
total 6,0K
-rwxrwx---+ 1 eduardo eduardo 553 jul. 9 13:34 .htaccess
drwxrwx---+ 1 eduardo eduardo 0 jul. 9 13:34 css
-rwxrwx---+ 1 eduardo eduardo 0 jul. 9 13:34 favicon.ico
-rwxrwx---+ 1 eduardo eduardo 1,8K jul. 9 13:34 index.php
drwxrwx---+ 1 eduardo eduardo 0 jul. 9 13:34 js
-rwxrwx---+ 1 eduardo eduardo 24 jul. 9 13:34 robots.txt
drwxrwx---+ 1 Administradores SYSTEM 0 jul. 9 14:24 system

also, file gets owner "unknown user"

ll public/system/App/Test/avatars/000/000/001/thumb/
total 4,0K
-rw-r----- 1 Unknown+User Unknown+Group 1,9K jul. 9 14:24 1.jpg

Windows 10 + command line + artisan serve WORKS OK

  • go to directory with windows command line
  • php artisan serve

ll public/
total 6,0K
-rwxrwx---+ 1 eduardo eduardo 553 jul. 9 13:34 .htaccess
drwxrwx---+ 1 eduardo eduardo 0 jul. 9 13:34 css
-rwxrwx---+ 1 eduardo eduardo 0 jul. 9 13:34 favicon.ico
-rwxrwx---+ 1 eduardo eduardo 1,8K jul. 9 13:34 index.php
drwxrwx---+ 1 eduardo eduardo 0 jul. 9 13:34 js
-rwxrwx---+ 1 eduardo eduardo 24 jul. 9 13:34 robots.txt
drwxrwx---+ 1 eduardo eduardo 0 jul. 9 14:28 system

Windows 10 + cygwin + artisan serve WORKS OK

  • go to directory in cygwin command line
  • php artisan serve

ll public/
total 6,0K
-rwxrwx---+ 1 eduardo eduardo 553 jul. 9 13:34 .htaccess
drwxrwx---+ 1 eduardo eduardo 0 jul. 9 13:34 css
-rwxrwx---+ 1 eduardo eduardo 0 jul. 9 13:34 favicon.ico
-rwxrwx---+ 1 eduardo eduardo 1,8K jul. 9 13:34 index.php
drwxrwx---+ 1 eduardo eduardo 0 jul. 9 13:34 js
-rwxrwx---+ 1 eduardo eduardo 24 jul. 9 13:34 robots.txt
drwxrwx---+ 1 eduardo eduardo 0 jul. 9 14:28 system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant