05-05-2009
Sadly, you are likely stuck starting up as root.
Other daemons start up as root, then listen to their < 1024 port, then they change user id to the user that they are supposed to be for the rest of the session.
The only other easy alternative is to choose a higher port number.
10 More Discussions You Might Find Interesting
1. Programming
Does anyone know if it's possible to send socket by a serial port ?
If yes, how can I find on Irix the value of my serial ports to use with this function : serverSockAddr.sin_port = ?
Thanks for all responses !
Kintoo (2 Replies)
Discussion started by: kintoo
2 Replies
2. Solaris
We are making some changes, and are now using Weblogic as the webserver on one of my projects. I would like for the non root user running Weblogic to be able to bind to port 80. (10 Replies)
Discussion started by: 98_1LE
10 Replies
3. UNIX for Dummies Questions & Answers
I want my server socket to listen on two ports in my machine. How do i achieve it? I will have two clients one connecting to 1 port and another to a different port. So my server needs to listen to both.
Thanks. (1 Reply)
Discussion started by: abc.working
1 Replies
4. Programming
Hello everybody,
I've coded a multi-client server based on internet sockets using the scheme
listen on port X-accept-fork, exactly like beej's guide
At some point I would like to establish a secondary connection between a client and the server-child serving him.
I was considering the... (4 Replies)
Discussion started by: jonas.gabriel
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
1 more new comer with a small problem. I have a Java socket program which tries to bind to a particular socket. It works fine with windows. But in Linux, it says 'address in use'. I tried 'netstat' to find if the port is being used. But it is free. Can anyone help plz? (0 Replies)
Discussion started by: ronyantony
0 Replies
6. Shell Programming and Scripting
I have written a small web server in Python, and now I would like to run it on port 80, but in order to be able to bind to a port below 1024 I need to have root privileges. I don't want to run the server as root, though. How can I bind to port 80 as root and then drop root privileges?
Thankful... (0 Replies)
Discussion started by: Ilja
0 Replies
7. Programming
Can anyone tell what is the system API for VxWorks which is used to find GetLastError() for socket/bind failure.
I need to use it in some VxWorks application and need to call GetLastError but I'm not sure about the correct API.
Thanks in advance (1 Reply)
Discussion started by: anilgurwara
1 Replies
8. Programming
Hello,
I'm trying to write a small c application to test a tcp port. This works fine for the most part but the default timeout on the connect is very long. I have been reading many posts but and it looks like I need to set the socket to be non-blocking and poll for a result. I have been totally... (2 Replies)
Discussion started by: tjones1105
2 Replies
9. Shell Programming and Scripting
i need to come up with a script that when run from the command line, it will bind to a socket, and listen for tcp connections on a certain port.
something like:
### ./connection_listener 5666
i found the following script on the web but when i run it, it complains about "accept" not being... (1 Reply)
Discussion started by: SkySmart
1 Replies
10. IP Networking
Hello,
Please help me in getting the process id and the port number from the socket
netstat -Aan|grep -i closed
f100050010b133b8 tcp 0 0 *.* *.* CLOSED
f1000500119b53b8 tcp4 0 0 *.* *.* ... (3 Replies)
Discussion started by: Vishal_dba
3 Replies
LEARN ABOUT DEBIAN
rsdwnlnk
RSDWNLNK(8) Linux Programmer's Manual RSDWNLNK(8)
NAME
rsdwnlnk - User exit from the ROSE network.
SYNOPSIS
rsdwnlnk <port> <call>
DESCRIPTION
The rdwnplnk program allows a user to leave the ROSE network using the standard pseudo-digipeating method. Recent Linux kernels are aware
of this form of operation and the ax25d program can create such connections. The normal mode of operation of a ROSE switch is to have one
ROSE address (ie port) per physical AX.25 port. Therefore ROSE users coming in on a given ROSE port will come out of the associated AX.25
port.
To use rsdwnlnk you need an entry in ax25d.conf to listen for incoming ROSE connections to any callsigns that are not matched by the more
specific ROSE entries. In the example below, I will be listening for ROSE connections on my ROSE port rs144, the exiting AX.25 connection
will be via the associated AX.25 port, 144, using the callsign KE4GAJ-10. Please note that the callsign should be on the same line as the
rest of the command, it may be wrapped onto the next line on your screen.
#
{* VIA rs144}
NOCALL * * * * * * L
default * * * * * * - root /usr/sbin/rsdwnlnk rsdwnlnk 144 KE4GAJ-10
#
There would typically be one rsdwnlnk per ROSE port. The associated program for entering a ROSE network is rsuplnk.
All errors generated by rsdwnlnk are written to the system debug log file.
FILES
/etc/ax25/axports
SEE ALSO
rose(4), ax25d.conf(5), ax25d(8), rsuplnk(8), rose_call(8).
AUTHOR
Jonathan Naylor G4KLX <g4klx@g4klx.demon.co.uk>
Linux 29 April 1997 RSDWNLNK(8)