* Re: [Sysadmins] Заставить работать suexec @ 2012-09-10 11:31 ` Michael Shigorin 2012-09-10 11:35 ` Boris Savelev 2012-09-10 11:58 ` Sergey 0 siblings, 2 replies; 6+ messages in thread From: Michael Shigorin @ 2012-09-10 11:31 UTC (permalink / raw) To: sysadmins On Mon, Sep 10, 2012 at 10:21:42AM +0400, Олег Анатольевич wrote: > Столкнулся с проблемой, не могу заставить работать suexec на вебсервере apache2 Если правильно помню, в apache2 как минимум один из worker'ов специально предназначен для организации работы под разными uid -- т.е. suexec может быть уже неактуален. Копните в эту сторону? > Ставлю апач, мод php, suexec, userdir, cgi > собран апач с suexec с такими опциями apache2 -- не та программа, которую лучше собирать самому. В первую очередь по причине обновлений. -- ---- WBR, Michael Shigorin <mike@altlinux.ru> ------ Linux.Kiev http://www.linux.kiev.ua/ ---- Sep 29, Kiev, Ukraine: -- http://conference.osdn.org.ua ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Sysadmins] Заставить работать suexec 2012-09-10 11:31 ` [Sysadmins] Заставить работать suexec Michael Shigorin @ 2012-09-10 11:35 ` Boris Savelev 2012-09-10 11:58 ` Sergey 1 sibling, 0 replies; 6+ messages in thread From: Boris Savelev @ 2012-09-10 11:35 UTC (permalink / raw) To: shigorin, ALT Linux sysadmins' discussion 10 сентября 2012 г., 15:31 пользователь Michael Shigorin <mike@osdn.org.ua> написал: > On Mon, Sep 10, 2012 at 10:21:42AM +0400, Олег Анатольевич wrote: >> Столкнулся с проблемой, не могу заставить работать suexec на вебсервере apache2 > > Если правильно помню, в apache2 как минимум один из worker'ов > специально предназначен для организации работы под разными uid > -- т.е. suexec может быть уже неактуален. > > Копните в эту сторону? mpm-itk -- Boris ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Sysadmins] Заставить работать suexec 2012-09-10 11:31 ` [Sysadmins] Заставить работать suexec Michael Shigorin 2012-09-10 11:35 ` Boris Savelev @ 2012-09-10 11:58 ` Sergey 2012-10-03 9:24 ` Sergey 1 sibling, 1 reply; 6+ messages in thread From: Sergey @ 2012-09-10 11:58 UTC (permalink / raw) To: sysadmins On Monday 10 September 2012, Michael Shigorin wrote: > > Столкнулся с проблемой, не могу заставить работать suexec на вебсервере > > apache2 > Если правильно помню, в apache2 как минимум один из worker'ов > специально предназначен для организации работы под разными uid > -- т.е. suexec может быть уже неактуален. А на эту тему, в том форуме, уже я добавлял. ;-) Это apache2-httpd-itk, соответственно, директива AssignUserId <user> <group>. Только у меня, с наскока, тоже не вышло. На AssignUserId ругани нет, когда именно этот httpd запущен, но phpinfo() упорно показывает, что виртуальный хост живёт под юзером apache2: User/Group apache2(104)/110 -- С уважением, Сергей a_s_y@sama.ru ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Sysadmins] Заставить работать suexec 2012-09-10 11:58 ` Sergey @ 2012-10-03 9:24 ` Sergey 2012-10-03 11:06 ` Anton Gorlov 0 siblings, 1 reply; 6+ messages in thread From: Sergey @ 2012-10-03 9:24 UTC (permalink / raw) To: ALT Linux sysadmins' discussion On Monday 10 September 2012, Sergey wrote: > Это apache2-httpd-itk, соответственно, директива AssignUserId <user> <group>. > Только у меня, с наскока, тоже не вышло. На AssignUserId ругани нет, когда > именно этот httpd запущен, но phpinfo() упорно показывает, что виртуальный > хост живёт под юзером apache2: User/Group apache2(104)/110 Забавно. При более внимательном рассмотрении оказалось, что процессы httpd2 таки запускаются от указанного пользователя, но phpinfo(), почему-то, показывает пользователя apache2. На php не распространяется, что ли ? Это как ?! -- С уважением, Сергей a_s_y@sama.ru ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Sysadmins] Заставить работать suexec 2012-10-03 9:24 ` Sergey @ 2012-10-03 11:06 ` Anton Gorlov 2012-10-03 11:36 ` Sergey 0 siblings, 1 reply; 6+ messages in thread From: Anton Gorlov @ 2012-10-03 11:06 UTC (permalink / raw) To: ALT Linux sysadmins' discussion Посмотрел на соседний тазик с debian-ом. User/Group www-data(33)/33 При этом posix_getuid() возвращает правильный uid/gid 03.10.2012 13:24, Sergey пишет: > On Monday 10 September 2012, Sergey wrote: > >> Это apache2-httpd-itk, соответственно, директива AssignUserId <user> <group>. >> Только у меня, с наскока, тоже не вышло. На AssignUserId ругани нет, когда >> именно этот httpd запущен, но phpinfo() упорно показывает, что виртуальный >> хост живёт под юзером apache2: User/Group apache2(104)/110 > > Забавно. При более внимательном рассмотрении оказалось, что процессы > httpd2 таки запускаются от указанного пользователя, но phpinfo(), > почему-то, показывает пользователя apache2. На php не распространяется, > что ли ? Это как ?! > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Sysadmins] Заставить работать suexec 2012-10-03 11:06 ` Anton Gorlov @ 2012-10-03 11:36 ` Sergey 0 siblings, 0 replies; 6+ messages in thread From: Sergey @ 2012-10-03 11:36 UTC (permalink / raw) To: ALT Linux sysadmins' discussion On Wednesday 03 October 2012, Anton Gorlov wrote: > Посмотрел на соседний тазик с debian-ом. > User/Group www-data(33)/33 > При этом posix_getuid() возвращает правильный uid/gid Хм. Похоже, это просто был не тот способ проверки пользователя. С apache 1 phpinfo(), так же, показывает юзера, из-под которого работает web-сервер. -- С уважением, Сергей a_s_y@sama.ru ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-10-03 11:36 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-09-10 11:31 ` [Sysadmins] Заставить работать suexec Michael Shigorin 2012-09-10 11:35 ` Boris Savelev 2012-09-10 11:58 ` Sergey 2012-10-03 9:24 ` Sergey 2012-10-03 11:06 ` Anton Gorlov 2012-10-03 11:36 ` Sergey
ALT Linux sysadmins discussion This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \ sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com public-inbox-index sysadmins Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sysadmins AGPL code for this site: git clone https://public-inbox.org/public-inbox.git