MLUG: Re: [MLUG] low ports from users?
Re: [MLUG] low ports from users?
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Sun, 10 Oct 2004, Michael wrote:

> Is there a way to allow a given user or users to have permission to open 
> a given port besides running the program and having it change it's 
> permissions after opening the port?
> 
> I run Apache as a user/group 'Apache' with all the files inside that 
> user apache's home dir. I still have to run Apache as root though 
> because a normal user can't open port 80. I'd like to adjust that so 
> that Apache can be completely contained within that user structure.

Only root has perms to open those ports, so either the app must be suid
so you can chage uids to root temporairly, or you can start the app as
root then switch uids back to the user.  Either way, you must have an
euid of 0 to open privliged ports.

--dlloyd
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members