LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grant permission to run server - how? (https://www.linuxquestions.org/questions/linux-newbie-8/grant-permission-to-run-server-how-305448/)

yrozijn 03-24-2005 07:22 AM

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

yrozijn 03-24-2005 07:26 AM

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.)

pk21 03-25-2005 04:29 AM

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.