In your position, i would try to hack the module's code and find out where and how the message "MM_permission (0600, ap_uname2id(DEFAULT_USER), ap_gname2id(DEFAULT_GROUP));" occur, under which condition. From: Muktheshwar Sharma <Muktheshwar.Sharma@xxxxxxxxxxx> To: "'users@xxxxxxxxxxxxxxxx'" <users@xxxxxxxxxxxxxxxx> Date: Thursday, March 31, 2005, 1:19:15 PM Subject: [users@httpd] migration from Apache 1.3.x to Apache 2 Thursday, March 31, 2005, 1:19:15 PM, you wrote: > Hi, > > Yes, nobody is there in all the three files. i.e. > 1. /etc/group > 2. /etc/passwd > 3./etc/shadow in these files. > > In my previous code I have used these words only in one statement that is > > "MM_permission (0600, ap_uname2id(DEFAULT_USER), ap_gname2id(DEFAULT_GROUP));" > > And I am very new to this Apache API. I do not know what the > above statement does. Whether to keep this in Apache 2 I do not > know. Please help me in this. > > Thanks and Regards, > Muktheshwar > 4th Line Support - Product Integration, 3 > Tel: +91 - 80 - 28520408 Extn: 84158 > Mobile: +91-98 45 98 10 44 > http://www.three.co.uk/ > > > -----Original Message----- > From: John [mailto:isofroni@xxxxxxxxx] > Sent: 30 March 200514:19 > To: Muktheshwar Sharma > Subject: Re[2]: [users@httpd] migration from Apache 1.3.x to Apache 2 > > > From: Muktheshwar Sharma <Muktheshwar.Sharma@xxxxxxxxxxx> > To: "'users@xxxxxxxxxxxxxxxx'" <users@xxxxxxxxxxxxxxxx> > Date: Wednesday, March 30, 2005, 11:50:46 AM > Subject: [users@httpd] migration from Apache 1.3.x to Apache 2 > > > > Wednesday, March 30, 2005, 11:50:46 AM, you wrote: > >> Hi, > >> Thanks for your quick response. I found the following information from >> Apache configuration file (httpd.conf). >> <IfModule !mpm_winnt.c> >> <IfModule !mpm_netware.c> >> # >> # If you wish httpd to run as a different user or group, you must run >> # httpd as root initially and it will switch. >> # >> # User/Group: The name (or #number) of the user/group to run httpd as. >> # . On SCO (ODT 3) use "User nouser" and "Group nogroup". >> # . On HPUX you may not be able to use shared memory as nobody, and the >> # suggested workaround is to create a user www and use that user. >> # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) >> # when the value of (unsigned)Group is above 60000; >> # don't use Group #-1 on these systems! >> # >> User nobody >> #Group #-1 >> Group nobody >> </IfModule> >> </IfModule> > >> As you suggested I have checked the following files >> 1. /etc/group >> 2. /etc/passwd >> 3./etc/shadow > >> I did not find the entries wwwrun and www in the above files. > >> Would it require having these in the above files? I am starting and stopping >> the Apache server using root account only. > >> Regards, >> Muktheshwar >> 4th Line Support - Product Integration, 3 >> Tel: +91 - 80 - 28520408 Extn: 84158 >> Mobile: +91-98 45 98 10 44 >> http://www.three.co.uk/ > > >> -----Original Message----- >> From: John [mailto:isofroni@xxxxxxxxx] >> Sent: 30 March 2005 08:20 >> To: Muktheshwar Sharma >> Subject: Re: [users@httpd] migration from Apache 1.3.x to Apache 2 > > >> From: Muktheshwar Sharma <Muktheshwar.Sharma@xxxxxxxxxxx> >> To: "'users@xxxxxxxxxxxxxxxx'" <users@xxxxxxxxxxxxxxxx> >> Date: Wednesday, March 30, 2005, 8:35:10 AM >> Subject: [users@httpd] migration from Apache 1.3.x to Apache 2 > > > >> Wednesday, March 30, 2005, 8:35:10 AM, you wrote: > > > > >>> Hi, > >>> > >>> I am migrating from Apache 1.3.27 to Apache 2.0.x. I have one >>> module that is compiled for Apache 1.3.x now I want to use the same >>> module for Apache 2. > >>> > >>> In my earlier version of apache code I have one statement >>> "MM_permission (0600, ap_uname2id(DEFAULT_USER), >>> ap_gname2id(DEFAULT_GROUP));" > >>> Now when I am compiling this with apxs utility I am getting the following >> error > >>> > >>> /home/mukthi//apache2/mod_xx.c:315: `DEFAULT_USER' undeclared (first use >> in this function) > >>> /home/mukthi//apache2/mod_xx.c:315: (Each undeclared identifier is >> reported only once > >>> /home/mukthi//apache2/mod_xx.c:315: for each function it appears in.) > >>> /home/mukthi//apache2/mod_xx.c:315: `DEFAULT_GROUP' undeclared (first use >> in this function) > >>> > >>> As I could not able to find how to use DEFAULT_USER and >>> DEFAULT_GROUP in Apache 2. Could anybody help me in this regard? > >>> > >>> Thanks and Regards, > >>> Muktheshwar > >>> 4th Line Support - Product Integration, 3 >>> Tel: +91 - 80 - 28520408 Extn: 84158 >>> Mobile: +91-98 45 98 10 44 >>> http://www.three.co.uk/ > >>> > >>> > > > >>> >>> ________________________________________________________________________ > >>> This e-mail message (including any attachment) is intended only for the >> personal >>> use of the recipient(s) named above. This message is confidential and may >> be >>> legally privileged. If you are not an intended recipient, you may not >> review, copy or >>> distribute this message. If you have received this communication in >> error, please notify >>> us immediately by e-mail and delete the original message. > >>> Any views or opinions expressed in this message are those of the author >> only. >>> Furthermore, this message (including any attachment) does not create any >> legally >>> binding rights or obligations whatsoever, which may only be created by >> the exchange >>> of hard copy documents signed by a duly authorised representative of >> Hutchison >>> 3G UK Limited. >>> >>> ________________________________________________________________________ > > > > >> hello > >> probably there is an issue with the user, group in the apache >> configuration. >> Did you check the /etc/group and /etc/passwd and /etc/shadow files >> that contain wwwrun and www respectiviely? > > > >> --------------------------------------------------------------------- >> The official User-To-User support forum of the Apache HTTP Server Project. >> See <URL:http://httpd.apache.org/userslist.html> for more info. >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >> " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > >> ________________________________________________________________________ > >> This e-mail message (including any attachment) is intended only for the personal >> use of the recipient(s) named above. This message is confidential and may be >> legally privileged. If you are not an intended recipient, you may not review, copy or >> distribute this message. If you have received this >> communication in error, please notify >> us immediately by e-mail and delete the original message. > >> Any views or opinions expressed in this message are those of the author only. >> Furthermore, this message (including any attachment) does not create any legally >> binding rights or obligations whatsoever, which may only be created by the exchange >> of hard copy documents signed by a duly authorised representative of Hutchison >> 3G UK Limited. >> ________________________________________________________________________ > > >> --------------------------------------------------------------------- >> The official User-To-User support forum of the Apache HTTP Server Project. >> See <URL:http://httpd.apache.org/userslist.html> for more info. >> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx >> " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > > Well, does the user nobody and group nobody exist in that files? > > If so, then the problem is somewhere else located. > > Tried to dive into module's code and check about the DEFAULT user and > group variable or constant. > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx