[Bug 794026] Re: bind to port less than 1024 by non-root user

2011-06-09 Thread Mikhail Kulinich
Thanks again for your help. Nice article. Put more light on my understanding. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/794026 Title: bind to port less than 1024 by non-root user To manage noti

[Bug 794026] Re: bind to port less than 1024 by non-root user

2011-06-08 Thread John Johansen
Yes it is unfortunate. You can however achieve the partially privileged user using pam_cap.so. I think this may be sufficient for your needs see http://www.linuxjournal.com/article/10249 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubu

[Bug 794026] Re: bind to port less than 1024 by non-root user

2011-06-07 Thread Mikhail Kulinich
Thanks for your effort. It is so pity that there is no such a simple way to do that. For instance, in Solaris 10 you can launch 'usermod -K defaultpriv=basic,net_privaddr $USER_NAME' command to get expected behavior. -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 794026] Re: bind to port less than 1024 by non-root user

2011-06-07 Thread Marc Deslauriers
You can use "authbind": http://manpages.ubuntu.com/manpages/oneiric/en/man1/authbind.1.html Or, alternatively, you can use iptables and redirect the port: iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080 Not sure if one of those solutions is adequate for your needs. In

[Bug 794026] Re: bind to port less than 1024 by non-root user

2011-06-07 Thread Mikhail Kulinich
If it is so, I am not able to bind on these ports at all. The only way I found is to use setcap which also does not work in my case (https://bugs.launchpad.net/ubuntu/+source/libcap2/+bug/794202). Could you propose any other way? I need to launch an application (which binds to low ports) with the