LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-17-2005, 07:38 PM   #1
Mercurius
Member
 
Registered: Jul 2005
Distribution: Slackware 11, Solaris 10
Posts: 143

Rep: Reputation: 15
Basic Acces given by root to user


Hi, I just created an account on my home-box, I am learning C, and when I compile the program, I cant bind it to a port, it's a simple timeserver like "clock". But I get the permission denied and I must switch to root. I must use chown I guess to give access to an user to allow him to play with sockets, but on what file?
 
Old 10-17-2005, 07:41 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
You shouldn't need to, what port are you trying to use? The first few (thousand I think) are reserved for daemons etc. Use a higher number and then your user should be able to play with his sockets, no problem
 
Old 10-17-2005, 10:07 PM   #3
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Yeah the first 1024 ports can only be bound to by programs running as root and I don't think there's a way to change this. You should be able to bind to higher numbered ports just fine though.
 
  


Reply


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
Cannot run basic commands unless Im logged on as root zwyrbla Linux - Newbie 4 08-22-2004 08:20 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 05:14 PM
Root acces to multiple users BoldKiller Linux - Security 7 01-14-2004 09:55 AM
Only root can acces this partition!? benjalien Mandriva 3 10-30-2003 11:30 PM
new user to IMAP, need basic help plz bkeating Linux - Newbie 4 05-21-2003 02:45 AM


All times are GMT -5. The time now is 02:41 PM.

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