composer-mkdir icon indicating copy to clipboard operation
composer-mkdir copied to clipboard

Directories permission

Open bazaglia opened this issue 9 years ago • 4 comments

As I've seen in code, directories seems to be always created using 777 permission. Wouldn't it be a great idea to let user pass a custom permission? I saw mode was deprecated in version 2, but I didn't got the reason.

bazaglia avatar May 22 '16 18:05 bazaglia

This would be good for security reasons alone.

CelticParser avatar May 22 '16 19:05 CelticParser

I removed permissions because it may not be the same in staging or production. On the security side, directories are not created using 777 permission unless you are using a 000 umask!

fbourigault avatar May 22 '16 21:05 fbourigault

Could you give an example to when/where file permissions would not be the same between

staging or production

...Or even with development?

CelticParser avatar May 22 '16 22:05 CelticParser

I had the case for software that could be deployed on different servers from different clients using different security policies. But I will accept any PR that is not BC to re-introduce the feature.

fbourigault avatar May 23 '16 07:05 fbourigault