I have written a program in C++ which uses sockets to talk to a windows7 machine.
I have run the code as the root user and everything works fine. However I don't want to end up running the program as root, for security reasons.
First I made a new user to run the program in, but it wouldn't let the user start a new socket, so I added the user to the root group and tried again, but Redhat will not let me start a new socket as anything but the root user.
I have tried this with the firewall disabled just to rule it out, and still no luck.
So, do any of you have an idea as to what permissions/groups should I change/add?
I have looked around online and found that:
/usr/sbin/setsebool -P httpd_can_network_connect=1
Is suggested as a possible cure, but it doesn't seem to help me.