Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Default umask.

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 2140 Views
  • mateusz.ujma
    Avatar
    Google Summer of Code Hacker
    6 Posts

    Default umask. Link to this post

    Some parts of SS use functions that depends on umask value i.e. mkdir. As long as you don't change default value it's ok but if you change ...It can lead to some strange permission problems that aren't easy to debug(I spend some time debugging it). Would it be possible to set default umask in the index.php or in other equivalent place ? .

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: Default umask. Link to this post

    This is a good point and is an example of something that doesn't give us too many issues on our own production environments but is something to resolve.

    I'm assuming the problems you talk of is when the apache user (e.g. "www-data" or "nobody") is different the user that you edit files as (e.g. your FTP login to a webhosting environment). You can do things like (in linux command line) set a sticky group bit on the 'assets' folder to ensure that subfolders are created with good permissions...

    When you say "would it be possible" are you enquiring whether this is a PHP or SilverStripe function that already does this, or suggesting that we provide some sort of means for this?

  • mateusz.ujma
    Avatar
    Google Summer of Code Hacker
    6 Posts

    Re: Default umask. Link to this post

    I think problem is caused by strange umask for i.e "nobody" user that I changed manually and forget about it(it’s really odd to do that). I meant by saying "would it be possible" that SS could set default umask value i.e 022 using umask function in index.php

    2140 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.