05-06-2009
Quote:
Originally Posted by
sneakyimp
Can anyone recommend some way to let this php script bind to port 843 without needing root-level access?
One way, if you use Solaris or OpenSolaris, would be to grant limited privileges to the process. In your case, that would be PRIV_NET_PRIVADDR.
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 LINUX
socket-event
socket-event(8) System Manager's Manual socket-event(8)
NAME
socket - event signalling that a socket connection has been made
SYNOPSIS
socket PROTO=PROTO PORT=PORT ADDR=ADDR
socket PROTO=PROTO PATH=PATH
DESCRIPTION
The socket event is generated by the upstart-socket-bridge(8) daemon when a socket connection is made whose details match the socket event
condition and environment specified in a jobs start on or stop on stanza.
When an incoming connection is detected, the file descriptor representing the socket is passed to the job in question to allow it to
accept(2) the connection. Additionally, the environment variable UPSTART_JOB will contain the name of the event ("socket") and the environ-
ment variable UPSTART_FDS will contain the number of the file descriptor corresponding to the listening socket.
EXAMPLES
Internet socket
Start web server when first client connects from localhost:
start on socket PROTO=inet PORT=80 ADDR=127.0.0.1
Local socket
start on socket PROTO=unix PATH=/var/run/.s.pgsql.1234
Abstract socket
start on socket PROTO=unix PATH=@/at/upstart/example
AUTHOR
Written by Scott James Remnant <scott@netsplit.com>
Manual page written by James Hunt <james.hunt@ubuntu.com>
BUGS
Report bugs at <https://launchpad.net/upstart/+bugs>
COPYRIGHT
Copyright (C) 2011 Canonical Ltd.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
init(5) init(8) socket(2) socket(7) upstart-socket-bridge(8)
upstart 2011-03-08 socket-event(8)