Tag Info

Hot answers tagged

2

Any application can be allowed a set of root capabilities using setcap. Opening port below 1024 if one of them. You can run the application as a non-root user, and if the capabilities you need are set, there will no problem. Read about the possible capabilities: http://linux.die.net/man/7/capabilities. For example, running apache-tomcat as non-root: ...


2

Apache is an example of a daemon that supports dropping privileges. Apache is started as root, and it binds to the ports as root. After it has binded, it uses the setuid and setgid system call to drop to lesser privileges. The user that it changes to is determined by it's "User" and "Group" configuration options.


2

You can use: ifdown eth0 to stop and ifup eth0 to start


2

Get the default route, and catch the interface column: nicolas@host:~$ ip route list | grep default | awk '{print $5} ' wlan0


1

Do they maybe just mean that if you use -i any that tcpdump won't put the interfaces into PROMISC mode? Yes, that's what I meant by that. The "any" device doesn't work by opening all devices independently and capturing on them, it works by opening a "packet socket" and, instead of binding it to a particular device (which is how you capture on that ...


1

This is due to a procedure called Autonegotiation, which happens at the physical layer. As far as the kernel is concerned, that link (connection) can only handle a bandwidth of 10 Mbps, and iperf presumably respects that maximum connection speed. The good folks over at http://networkengineering.stackexchange.com/ can probably go into more detail if you have ...


1

What is the best way to get around this? The one that's given in glassfish itself. Straight from linux-service.template: # Example commands that demonstrate how to run GlassFish on the "special" ports < 1024 # # iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080 # iptables -t nat -A PREROUTING -p udp -m udp --dport ...


1

You need to set up remote port forwarding from the server to the Raspberry Pi. Below is just a brief explanation of what that means.1 Remote port forwarding Now comes the second part of this tutorial, which is remote port forwarding. This is again best to explain with an example. Say that you’re developing a Rails application on your local ...



Only top voted, non community-wiki answers of a minimum length are eligible