Grant permission to run server - how?
I'm an experienced programmer but an absolute newbie to Linux.
I've written a very simple tcp/ip server program to learn tcp programming under linux. When I run it under the root, it works ok. But when I run it under a normal user I get an error 13 - permission denied, when I try to bind() the server socket to the IP address. I'm sure I must be able to grant the user account permission to do this, but how and where? Do I have to add the user to some group? But what group would that be? I'm running Mandrake 10.1. -- Yvon Rozijn |
Please forget this post - I think I found the problem.
(I was trying to bind to port 80 and probably that was already in use - when I use another port number it works ok.) |
Only user root can use ports 1 - 1024, so if you want to run your program as a non root user than you will have to use a port above the 1024
|
All times are GMT -5. The time now is 09:04 PM. |