Thursday, May 15, 2008

Disabling port protection for ports below 1024

Try running a program which binds to ports less than 1024 as non root user. The possible thing you are going to say back is you need to be root to do so.

Its just a belief.

Issue the below command depending on your operating system and try again ( issue as root )

freebsd :


sysctl net.inet.ip.portrange.reservedhigh=0


Solaris:


/usr/sbin/usermod -K defaultpriv=basic,net_privaddr


now execute the program which binds to ports below 1024, run as normal user - and check :-). The above command take off the reservations on the ports below 1024.


© yankandpaste®

No comments: