On Fri, 4 Jun 1999, Peter Samuel wrote:

> On Thu, 3 Jun 1999, Russell P. Sutherland wrote:
> > ...
> > Note that your uid and groupid will differ, as will the executable
> > paths. If you have perl a more portable construct is:
> > 
> >  /opt/local/etc/tcpserver \
> >      -u ` perl -e 'print scalar getpwnam qmaild' ` \
> >      -g ` perl -e 'print scalar getgrnam nofiles' ` \ 
> >      etc...
> 
> I've never had any problems running
> 
>     tcpserver -u qmaild -g nofiles
> 
> Have I been wrong all this time?

Just did another test. I WAS wrong all this time :(

You've got to use numbers only. If you use names, as I was, then
tcpserver ends up giving them a value of 0 (output of scan_ulong())
and sets effective user id to root. Nasty.

Regards
Peter
----------
Peter Samuel                                [EMAIL PROTECTED]
Technical Consultant                        or at present:
eServ. Pty Ltd                              [EMAIL PROTECTED]
Phone: +61 2 9206 3410                      Fax: +61 2 9281 1301

"If you kill all your unhappy customers, you'll only have happy ones left"

Reply via email to