/ Zope / Apsis / Pound Mailing List / Archive / 2004 / 2004-04 / bad argument(s) (Pound-1.7)

[ << ] [ >> ]

[ New - current / Robert Segall ... ] [ Questions for the Group/Author / Dylan Neild ... ]

bad argument(s) (Pound-1.7)
"Alex Kang" <deyank(at)mmodal.com>
2004-04-05 23:30:05 [ FULL ]
Hi,

 

I just installed the pound and tried to run it with a vanilla pound.cfg
provided below:

 

### begin of pound.cfg ###

ListenHTTP 192.168.128.212,80

User nobody

Group nogroup

Client 15

Alive 60

LogLevel 2

UrlGroup ".*"

BackEnd 192.168.128.126,80,1

BackEnd 192.168.128.65,80,1

EndGroup

### end of pound.cfg ###

 

However, I always get same error messages : ( from /var/log/messages )

 

Apr  5 17:11:24 xxx pound: starting...

Apr  5 17:11:24 xxx pound: bad argument(s)

 

I am sure that Pound is accessing the pound.cfg showing above.

 

Some system info :

Linux xxx.com 2.4.21-4.0.1.ELsmp #1 SMP Thu Oct 23 01:27:36 EDT 2003
i686

i686 i386 GNU/Linux

OpenSSL : 0.9.7a

 

Thanks,

 

Alex Kang

RE: bad argument(s) (Pound-1.7)
"Alex Kang" <deyank(at)mmodal.com>
2004-04-06 00:36:43 [ FULL ]
Hi,

 

I have solved the problem. Thanks

 

 

Some further questions :

 

When I ran  Pound as root with above configuration

 

It gave me:

 

Apr  5 17:51:38 xxx pound: starting...

Apr  5 17:51:38 xxx pound: must be started as root - aborted

 

I checked the config.c and though it might be the coz of    if(suer ||
group || root )   or   if(geteuid())

So I modify the pound.cfg by deleting two lines

# User nobody

# Group nogroup

 

It gave me new error msg:

 

Apr  5 18:01:18 xxx pound: starting...

Apr  5 18:01:18 xxx pound: HTTP socket bind: Permission denied - aborted

 

The Ethernet connection is good, and there is nothing wrong with pinging
the backends

Any suggestions ?

 

Many thanks,

 

Alex Kang

RE: bad argument(s) (Pound-1.7)
Robert Segall <roseg(at)apsis.ch>
2004-04-06 14:19:36 [ FULL ]
On Tue, 2004-04-06 at 00:36, Alex Kang wrote:[...]

Yes - read up a bit on networking and Unix security. All this has
nothing to do with Pound.

In your case: you cannot run setuid/setgid and/or bind to privileged
ports (< 1024) unless you are root.[...]

MailBoxer