Reply to Re: Php initializes extensions as root

Your name:

Reply:


Posted by Colin McKinnon on 09/07/06 22:22

Jose da Silva wrote:

> Hi there people,
>
> I'm having a problem, i've designed an php extension, that uses shared
> memory iteraction.
>
> Altought, Php is initializing the extension as root, leaving the shared
> memory with wrong permissions, as is created as root process.
>
> Is there any way to initialize extensions, not as root?
>
probably not if you want to listen on reserved ports.

Maybe I'm being dim here, but why not set the permissions with the mode
parameter when you create the shm (I assume you're using shm_open) ?

C.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация