Re: Directory permissions
The "t" is the sticky bit. On 12 Mrz., 17:56, Marco wrote: > Thank you David. > > I tried to modify with a leading 0 but the result is the same. > Your are right when you say permission 777 is not a good idea. I > modified with 0755 and the result is d-wxrw--wt (363) > > What is the 't' at the end? Is the problem something related to the > server configuration? > > Marco > > On Mar 12, 10:01 am, David Persson wrote: > > > Hi Marco, > > > You need to specify the permissions as 0777 (octal) with a leading > > zero: > > > new Folder('/tmp/a', true, 0777); > > > But be careful with that as it makes the created dir world read and > > writable. > > Seehttp://php.net/manual/en/function.chmod.phpformor information on > > modes. > > > -David > > > On 12 Mrz., 12:13, Marco wrote: > > > > Hello, > > > > I have a problem with directories permissions created by CakePhp in a > > > hosting server that I never had. > > > The folder is created by this line of code: > > > > $folder = &new Folder($path = $folderName, $create = true, $mode = > > > '777'); > > > > The folder is created with these permissions on server drx--t > > > > The guys of server support told me that when CakePhp creates folders > > > they have Apache permission and I have to change the configuration of > > > CakePhp. > > > > I don't know how to solve this problem. > > > > Marco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Directory permissions
Hi David, thank you very much!! The problem was the quotes. The behaviour I downloaded from cakephp website uses '777' to create the directory, I use now 0775. Thank you again for your professional help. Marco On Mar 12, 3:25 pm, David Persson wrote: > Hi Marco, > > Please verify that you are using 0777 or 0755 and not '0777' or > '0755'. Pay attention to the quotes. > > 0777 is not the same as '0777' > The first one is an octal integer and the second one a string. > > intval(0777) // is 511 > intval('0777') // is 777 > > See:http://php.net/manual/de/language.types.integer.php > > -David > > On 12 Mrz., 17:56, Marco wrote: > > > Thank you David. > > > I tried to modify with a leading 0 but the result is the same. > > Your are right when you say permission 777 is not a good idea. I > > modified with 0755 and the result is d-wxrw--wt (363) > > > What is the 't' at the end? Is the problem something related to the > > server configuration? > > > Marco > > > On Mar 12, 10:01 am, David Persson wrote: > > > > Hi Marco, > > > > You need to specify the permissions as 0777 (octal) with a leading > > > zero: > > > > new Folder('/tmp/a', true, 0777); > > > > But be careful with that as it makes the created dir world read and > > > writable. > > > Seehttp://php.net/manual/en/function.chmod.phpformorinformation on > > > modes. > > > > -David > > > > On 12 Mrz., 12:13, Marco wrote: > > > > > Hello, > > > > > I have a problem with directories permissions created by CakePhp in a > > > > hosting server that I never had. > > > > The folder is created by this line of code: > > > > > $folder = &new Folder($path = $folderName, $create = true, $mode = > > > > '777'); > > > > > The folder is created with these permissions on server drx--t > > > > > The guys of server support told me that when CakePhp creates folders > > > > they have Apache permission and I have to change the configuration of > > > > CakePhp. > > > > > I don't know how to solve this problem. > > > > > Marco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Directory permissions
Hi Marco, Please verify that you are using 0777 or 0755 and not '0777' or '0755'. Pay attention to the quotes. 0777 is not the same as '0777' The first one is an octal integer and the second one a string. intval(0777) // is 511 intval('0777') // is 777 See: http://php.net/manual/de/language.types.integer.php -David On 12 Mrz., 17:56, Marco wrote: > Thank you David. > > I tried to modify with a leading 0 but the result is the same. > Your are right when you say permission 777 is not a good idea. I > modified with 0755 and the result is d-wxrw--wt (363) > > What is the 't' at the end? Is the problem something related to the > server configuration? > > Marco > > On Mar 12, 10:01 am, David Persson wrote: > > > Hi Marco, > > > You need to specify the permissions as 0777 (octal) with a leading > > zero: > > > new Folder('/tmp/a', true, 0777); > > > But be careful with that as it makes the created dir world read and > > writable. > > Seehttp://php.net/manual/en/function.chmod.phpformor information on > > modes. > > > -David > > > On 12 Mrz., 12:13, Marco wrote: > > > > Hello, > > > > I have a problem with directories permissions created by CakePhp in a > > > hosting server that I never had. > > > The folder is created by this line of code: > > > > $folder = &new Folder($path = $folderName, $create = true, $mode = > > > '777'); > > > > The folder is created with these permissions on server drx--t > > > > The guys of server support told me that when CakePhp creates folders > > > they have Apache permission and I have to change the configuration of > > > CakePhp. > > > > I don't know how to solve this problem. > > > > Marco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Directory permissions
Thank you David. I tried to modify with a leading 0 but the result is the same. Your are right when you say permission 777 is not a good idea. I modified with 0755 and the result is d-wxrw--wt (363) What is the 't' at the end? Is the problem something related to the server configuration? Marco On Mar 12, 10:01 am, David Persson wrote: > Hi Marco, > > You need to specify the permissions as 0777 (octal) with a leading > zero: > > new Folder('/tmp/a', true, 0777); > > But be careful with that as it makes the created dir world read and > writable. > Seehttp://php.net/manual/en/function.chmod.phpfor mor information on > modes. > > -David > > On 12 Mrz., 12:13, Marco wrote: > > > Hello, > > > I have a problem with directories permissions created by CakePhp in a > > hosting server that I never had. > > The folder is created by this line of code: > > > $folder = &new Folder($path = $folderName, $create = true, $mode = > > '777'); > > > The folder is created with these permissions on server drx--t > > > The guys of server support told me that when CakePhp creates folders > > they have Apache permission and I have to change the configuration of > > CakePhp. > > > I don't know how to solve this problem. > > > Marco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Directory permissions
Hi Marco, You need to specify the mode as 0777 (octal number) with a leading zero: new Folder('/tmp/a/b', true, 0777); But be careful with that. This makes the directory world read and writable! See http://php.net/manual/en/function.chmod.php for more information on modes. -David On 12 Mrz., 12:13, Marco wrote: > Hello, > > I have a problem with directories permissions created by CakePhp in a > hosting server that I never had. > The folder is created by this line of code: > > $folder = &new Folder($path = $folderName, $create = true, $mode = > '777'); > > The folder is created with these permissions on server drx--t > > The guys of server support told me that when CakePhp creates folders > they have Apache permission and I have to change the configuration of > CakePhp. > > I don't know how to solve this problem. > > Marco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Directory permissions
Hi Marco, You need to specify the permissions as 0777 (octal) with a leading zero: new Folder('/tmp/a', true, 0777); But be careful with that as it makes the created dir world read and writable. See http://php.net/manual/en/function.chmod.php for mor information on modes. -David On 12 Mrz., 12:13, Marco wrote: > Hello, > > I have a problem with directories permissions created by CakePhp in a > hosting server that I never had. > The folder is created by this line of code: > > $folder = &new Folder($path = $folderName, $create = true, $mode = > '777'); > > The folder is created with these permissions on server drx--t > > The guys of server support told me that when CakePhp creates folders > they have Apache permission and I have to change the configuration of > CakePhp. > > I don't know how to solve this problem. > > Marco --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---