Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-24-2005, 07:22 AM   #1
LQ Newbie
Registered: Mar 2005
Distribution: Mandrake 10.1
Posts: 2

Rep: Reputation: 0
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
Old 03-24-2005, 07:26 AM   #2
LQ Newbie
Registered: Mar 2005
Distribution: Mandrake 10.1
Posts: 2

Original Poster
Rep: Reputation: 0
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.)
Old 03-25-2005, 04:29 AM   #3
Registered: Jun 2002
Location: Netherlands - Amsterdam
Distribution: RedHat 9
Posts: 549

Rep: Reputation: 30
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
crontab failure: permission denied trying to run script hedpe Linux - Software 5 05-03-2005 07:07 PM
can't run ./install scripts, permission denited as root bentman78 Linux - Software 1 05-26-2004 10:10 AM
You don't have permission to access / on this server. jkpalmer52 Linux - General 4 01-27-2004 04:05 PM
Permission run konqueror as root in KDE lynxgogo Linux - Software 6 12-13-2003 02:27 PM
You don't have permission to access / on this server jaydave Linux - Networking 1 03-15-2003 06:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration