[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Privileged Port Puzzle



Steve Greenland <steveg@moregruel.net> wrote:

>> However, this is obviously not the way imagectn is 
>> supposed to work. 

> Uh, why not? 

> If (uid==0) {
>	bind to specified port;
>	setuid("imagectn"); /* or "nobody" */
>	setgid("imagectn");
> } else {
>	bind to specified non-privileged port OR fail;
>	/* Keep running as current user */
> }

Well, I meant this is obviously not the way imagectn is 
supposed to work without tweaking the source. ;-)

Anyway, this seems to be the way to go. Thanks.

Best regards - Juergen 

-- 
GPG A997BA7A | 87FC DA31 5F00 C885 0DC3  E28F BD0D 4B33 A997 BA7A

Attachment: signature.asc
Description: Digital signature


Reply to: