Ubuntu Servers :: Lucid: Starting Tomcat6 On Well-known Ports?

Aug 4, 2010

I've installed Sun Java, tomcat6 and tomcat6-admin on 10.04 server 64-bit. By default, tomcat is configured to run as the tomcat6 user. Everything runs just fine on tcp/8080 as initially configured. Modifying the connector port in /etc/tomcat6/server.xml to anything below 1024 (e.g. port 80) results in:

SEVERE: Error starting endpoint
java.net.BindException: Permission denied <null>:80

This all begs the question... do you *really* have to run tomcat as root to bind to a well-known port? I.e. is there really no way for tomcat to start as root, bind to a privileged port and then drop privs?

View 6 Replies


ADVERTISEMENT

Ubuntu Servers :: Tomcat6 Ajp Connector Won't Start?

Mar 16, 2010

I'm trying to do a standard mod_jk setup--get apache to forward requests to Tomcat. I must admit that I'm not so familiar with the details of mod_jk, but I got this working before when I had used tomcat 6 directly from apache's website, but now that I've switched to the version in Ubuntu's repositories I can't get it working.

The log for mod_jk says:

Code:
[Mon Mar 15 23:59:41 2010] [5575:3004840816] [error] ajp_send_request::jk_ajp_common.c (1359): (ajp13_worker) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Mon Mar 15 23:59:41 2010] [5575:3004840816] [error]

[Code].....

View 1 Replies View Related

Ubuntu Servers :: Change Tomcat6 Root Directory In 9.10?

Jan 6, 2010

I have newly installed Ubuntu server 9.10 in my server machine.And it has tomcat6 in itself.My friend have built a Java software in Fedora ,and he wants to move it to the new server.But problem is the directory structure is different between two systems.He has to either change his directory setting in his software or change the default tomcat6 ROOT directory. But I have not find any configuration file can do this job(change the tomcat default ROOT directory ).

View 3 Replies View Related

Ubuntu :: USB Ports Failing After Installing Lucid?

Sep 19, 2010

hy my usb ports keep failing ? My optical mouse starts to blink , freezes and then goes off so i try another port and its OK for a while then the same happens again . So i try another until all have been tried so reboot and everything works again. Im not technically minded and have NO idea why this is happening .

View 2 Replies View Related

Ubuntu Installation :: Can't Add Irqpoll In 10.04 Lucid - USB Ports Don't Work / Fix This?

May 8, 2010

I installed Lucid earlier today (took about 4 hours as karmic wouldn't write the cd so had to use wifes Mac OS)
In the 2 previous releases of ubuntu I have had to add irqpoll to the boot line in order for my USB ports to work. I dont understand why this works but it does.
With the new "noninteractive" boot I can't work out how to add irqpoll to the boot sequence.

View 2 Replies View Related

Ubuntu Networking :: Ssh Not Working - Ports Not Open - Tcp Diallow For Lucid

May 7, 2010

I've installed a fresh copy of the latest 10.04 distro, lucid lynx and have problems connecting to the machine via ssh because the ports are all blocked (using nmap to check). In past releases, changing the gdm.conf flag "TCPDISALLOW" from true to false would fix this. In the new /etc/gdm/gdm.schemas, I've tried making a similar change, but it's still not opening things up. I've downloaded gufw and have made sure the firewall is off. So, I'm not sure what to try next.

View 1 Replies View Related

Ubuntu Servers :: Redirecting Ports For Running Two Web Servers

Sep 5, 2010

I am running apache2 and tornado web servers on the same server with one ip address.

The apache2 listens on port 80. Tornado listens on port 8888. I want to redirect requests from a specific ip port 80 to port 8888. I don't have the ability to change the port request on the device. It wants is looking for a web server on port 80.

Any other web server request should go to the apache.

I tried adding the following to /etc/ufw/before.rules

When I run iptables -L it doesn't appear. I have disabled and enabled ufw with no help.

View 3 Replies View Related

Ubuntu :: Services Not Starting In Lucid

Jul 12, 2010

Basically services aren't starting up, like cron, VBox, ssh. I suspect a problem in the boot process, but I don't know where to look for errors with init or upstart or whatever it is these days.

View 5 Replies View Related

Ubuntu Servers :: Ports Closed Over Time?

Jul 22, 2010

I'm trying to run a web server on ubuntu lucid, and I have a problem what is not directly linux related, but a problem with opening ports. I hope this question is welcome here as well. When I open port 80 everything works well. My server is accessible from outside. But strangely the day after the port is closed again. Right now I have do reset my router every day to keep that port open and well, that's not much of a solution. I wonder how it is possible. I configure everything on my router, I save the settings and it works. How come it automatically resets my configurations over time?

View 9 Replies View Related

Ubuntu Servers :: 10.04 - No Open Ports By Default

Dec 15, 2010

"Ubuntu Server has no open ports by default" - [URL]. Does this mean right after a 10.04 Server Edition installation, if a user wants to start a web service e.g. a Java process to listen on say port 8080, he would have to configure the firewall first?

View 1 Replies View Related

Ubuntu Servers :: All Ports Filtered By Default?

May 1, 2011

I just finished setting up a Natty box to act as my home router / home web server. I installed beta2 a few days before the final was out and updated all of the packages (also tried a dist-upgrade just in case ).

I performed the following setup:

- set up the webserver and sshd
- set up dhcp server and adressing
- set up rc.local to run rc.firewall with my filtering rules
- set the router live (rebooting it)

And that was basically it. Everything worked fine, except when I tried to open any of the sites that are hosted on the webserver from the outside world. It turned out that all of the ports on the external interface were blocked.

I decided to stop my firewall rules (flushing all rules) and then scan my box from the outside - still, all ports seemed to be filtered. I then decided to reboot the machine, disabling all mention of the rc.firewall script, but the ports were still filtered!

I then disabled apparmor and made sure ufw is disabled, but the ports are still filtered for the outside world. For the internal network they are not filtered.

Is there some other mechanism besides iptables rules that filteres packets?

View 2 Replies View Related

Ubuntu Servers :: Apache Multiple Ports Config?

Mar 28, 2010

I have several sites running on a local server. Currently, they're all running on port 80. I need one particular site (and ONLY that site) to also accept connections on port 81.

If I browse to the server IP x.x.x.x:80 directly, Apache's behaviour of showing the default site should work as usual. But, if I browse to IP x.x.x.x:81, it should show a different site (the one that should be accepting both :80 and :81). This part is very important.

I was hoping something like the following would work, but it didn't Currently x.x.x.x:81 still shows what I've called myport80defaultsite.com below.

Code:
Listen 80
Listen 81
<VirtualHost *:80>
ServerName myport80defaultsite.com

[Code].....

View 1 Replies View Related

Ubuntu Servers :: Iptables Allow Ports To A Specific Ip Or Domain Name?

Jul 23, 2010

How to configure iptables to allow only 22,80,3306 ports for only a dynamic public ip/dyn dns domain name on a ubuntu server?

View 9 Replies View Related

Ubuntu Servers :: Ports Not Open - Built In Firewall ?

Jul 26, 2010

I am having trouble getting ports to open, on the router that the server is connected to it is set to DMZ, so everything passing through the router should go to the server right? but when I use a port checker none of the ports that I need to be open are. so my question is does ubuntu have a built in firewall that no one told me about? or something that would block me from having the ports open?

View 3 Replies View Related

Ubuntu Servers :: Firewall / Router Forward Ports

Sep 8, 2010

I have linux server setup on a network with 2 interfaces. One (eth0) is connected to the regular network and the other (eth1) has a DHCP server and transparent web cache listening on it. The machines connected on the eth1 side are on a different subnet and the linux server is there gateway. Untrusted machines are introduced to this network to keep them isolated.

This isolation works well, too well. There are a small set of resources on the regular network I would like to make available to machines on untrustworthy network. I think I need to use iptables but alas I've had no luck in piecing together the command I need (in one case looking myself out and having to physically reset the machine).

View 3 Replies View Related

Ubuntu Servers :: 10.04 Edition - No Open Ports By Default?

Dec 15, 2010

I've tried to set up a Hadoop cluster on a few freshly-installed 10.04 Server Edition machines and hit a problem. (I was able to set up the cluster using Desktop edition previously). The issue is that I can't connect to the service even though the Java process is running and listening on the port and there is no error in the logs. Anyway, I started to wonder if it was firewall issue so I googled it and found conflicting information.

1. "Ubuntu Server has no open ports by default" - [URL]
2. iptables shows different info. ufw is also disabled.

hadoopadmin@machine-1:~$ sudo iptables -L
[sudo] password for hadoopadmin:
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
hadoopadmin@machine-1:~$ sudo ufw status verbose
Status: inactive

I even tried to enable ufw and did "sudo ufw default allow incoming" but still no help. The only package I manually selected during installation is OpenSSH server.

View 1 Replies View Related

Ubuntu Servers :: How To Edit The File Ports.conf

Jul 8, 2011

I want to edit the file ports.conf to make Apache to listen only to loopback interface as described [URL]... here ,The text extract follows

Quote:

The Listen directive specifies the port, and optionally the IP address, Apache2 should listen on. If the IP address is not specified,Apache2 will listen on all IP addresses assigned to the machine it runs on. The default value for the Listen directive is 80. Change this to 127.0.0.1:80 to cause Apache2 to listen only on your loopback interface so that it will not be available to the Internet, to (for example) 81 to change the port that it listens on, or leave it as is for normal operation. This directive can be found and changed in its own file, /etc/apache2/ports.conf

But by typing [CODE]sudo vi /etc/apache2/ports.conf [/CODE} and opening the file I am not able to edit the file After going to the Listen Directive I am not able to type 127.0..0.1, Since what I type does not appear on the screen, the Keyboard is not working. How will I be able to edit the ports.conf and other configuration files

View 3 Replies View Related

Fedora Servers :: F11 - Cannot Open Ports 53 And 25

Mar 28, 2010

I've been struggling for days trying to open port 53 and 25 but can't get it to work. My iptables at /etc/sysconfig contains the following:
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0] .....

On the server machine when I do port scan with nmap I see the following result:
Starting Nmap 4.76 [URL] at 2010-03-28 01:03 CET
Warning: Hostname localhost resolves to 2 IPs. Using 127.0.0.1.
Interesting ports on localhost (127.0.0.1):
Not shown: 986 closed ports .....

But when I try to do telnet from an external machine, e.g:
telnet <IP of host> 53
I get:
Connection refused
telnet: Unable to connect to remote host

I also did a port scan with a tool on an external machine but port 53 and 25 weren't listed as opened ports. Also CheckDNS.net on the server returns "Connection reset. Probably DNS server is offline". I am 100% sure that named and sendmail are running. When I do a ps -aux I see:
named 9261 0.0 0.3 85528 14784 ? Ssl 00:46 0:00 /usr/sbin/named -u named
root 2550 0.0 0.0 9536 1960 ? Ss Mar23 0:02 sendmail: accepting connections

View 14 Replies View Related

Ubuntu Servers :: Grant User Access To Open Ports

Nov 19, 2010

I have a JavaCL program trying to open a port on 41xxx and it is getting permission denied unless I run it as root. I would like to grant a single user this permission for opening this port. This program runs fine on a vanilla ubuntu install but not on server. Where does Ubuntu handle user permissions for opening ports?I understand this is typically a no-no on a server but this is an unusual circumstance.

View 1 Replies View Related

Ubuntu Servers :: Can't Browse SAMBA Shares Because Ports Between 137 To 139 And 445 Are Closed

Nov 26, 2010

I can't browse my SAMBA shares because ports between 137 to 139 and 445 are closed, but I don't know why.

I even turn off iptables

Code:

But...

Code:

View 9 Replies View Related

Ubuntu Servers :: Serial Ports On Client Side Ltsp Setup?

Dec 12, 2010

I have recently installed an ltsp system, client and server. Everything works except i cannot get my client side serial ports to work or register for that matter. Can anyone point me to the steps i should take to get these working.

View 1 Replies View Related

Ubuntu Servers :: 11.04 - Open Ports Found After Quick NMap Scan

Jul 7, 2011

I have ordered a server with OS:
Ubuntu Server 11.04

After a quick nmap scan I found out a few open ports. What is using these ports?
1102/tcp filtered adobeserver-1
1201/tcp open nucleus-sand

View 4 Replies View Related

Fedora Servers :: OpenVPN Setup On FC12 - Ethernet Ports?

Apr 12, 2010

I am trying to setup a VPN on my FC 12 box. Looks like getting openvpn to work behind NAT is as easy as just forwarding the ports. Do I need to forward any specific protocols (GRE, etc)? Also, can I do this with one Ethernet port (IE: RJ-45 jack), or do you recommend a second ethernet port? I could add in another PCI ethernet card if it makes it easier. Anyone know if a single ethernet jack will work or do I need two?

View 2 Replies View Related

Fedora Networking :: Tool To Create Multiple Listening Servers On TCP And UDP Ports

Jan 17, 2011

Looking for a test tool where I can fire up any number of ports (TCP and / or UDP) to listen on.

I am currently getting my using nc but its only 1 port at a time (i know I can open up multiple sessions but thats cumbersome), it can't do UDP, and it closes at the end of the session.

A friend has suggested socat but it looks pretty much the same except it can do UDP, but also cumbersome, I have to manually output to a different file per port, etc.

Basically its so I can quickly test firewall and NAT rules.

View 7 Replies View Related

Ubuntu :: Apache2 + Tomcat6 - Jsp Does Not Execute

Jan 11, 2011

I am trying to setup Ubuntu with Apache2+Tomcat6. I can get the site up and running, however when I have a jsp file it does not execute, instead it just prints the full jsp to browser.

I am checking if there is a configuration issue that may be missed.

sudo /etc/init.d/tomcat6 status # shows fine

/etc/apache2/sites-available has a file for my site containing valid DocumentRoot

/home/user/sitename/webapps/examples
/home/user/sitename/webapps/examples/jsp
/home/user/sitename/webapps/examples/jsp/sample.jsp contains below text
<%= "hello" %>

When above page is visited in browser, it shows full html tags instead of displaying the output. It displays static pages fine.

View 1 Replies View Related

Ubuntu Servers :: SSH Not Starting On Reboot

Nov 29, 2010

I have set up a new IP specifically for SSH and configured SSHD_Config accordingly to listen on this new interface and a specific port. However when I reboot SSH is not starting. Looking in the syslog it shows that it is unable to start. It looks like its trying to listen on the interface before it is set up.

Code:
Nov 29 13:00:23 anubis init: ssh main process (601) terminated with status 255
Nov 29 13:00:23 anubis init: ssh main process ended, respawning
Nov 29 13:00:23 anubis init: ssh main process (610) terminated with status 255
Nov 29 13:00:23 anubis init: ssh main process ended, respawning
Nov 29 13:00:23 anubis init: ssh main process (618) terminated with status 255
Nov 29 13:00:23 anubis init: ssh respawning too fast, stopped

I am able to start SSH manually once the server is booted. Do I need to set up my interfaces differently to ensure they are available prior to SSH starting somehow? I don't want to change my ssh config to listen on all addresses.

View 9 Replies View Related

Ubuntu :: Starting The Multiple X Servers?

May 20, 2009

How can I start multiple X servers by logging into same user and using same desktop environment like KDE or GNOME. Is this possible by editing .xauthority, .xinitrc etc files?

View 1 Replies View Related

Ubuntu Servers :: Secure Fileserver Over Internet - Opening Samba Ports Make Default Particularly Vulnerable To Penetration?

May 26, 2011

I'd like to set up a fileserver for myself and a few trusted individuals. I'm computer savvy and I use various linux servers frequently for work, but this is my first time trying to setup my own. Is it possible to have a Samba server setup so it is both secure and facing the Internet? Two questions:

Will opening Samba ports make my default Ubuntu server particularly vulnerable to penetration? More than having an SSH server running? Does Samba/ can Samba be configured to encrypt traffic or is it sent plainly? If so, does Windows and Mac support this secure communication?

If not, what would you suggest? I'd like to achieve something like a network drive and at a difficulty level that my parents could use this if they really wanted to. I will be storing things like financial information and tax returns, but no weapons-grade secrets.

View 9 Replies View Related

Ubuntu :: 9.10 Server Edition And Tomcat6 Compatibility?

May 6, 2010

I am new to ubuntu server. Currently I am running Ubuntu 9.10 server edition. I installed tomcat6 downloaded from apache site and started. But can't run the war file and cant even shut it down. I am running tomcat with default port 8080 and 8005 for shutdown port. I have reinstalled tomcat over and over again. Ubuntu desktop version is running on my pc, everything fine there.

View 2 Replies View Related

Ubuntu :: Deploy Apache Continuum On Tomcat6

May 3, 2011

I have ubuntu 10.04LTS server. Open jdk and tomcat6 installed from synaptic package manager. I run different war files on tomcat6. I downloaded apache-continuum-1.3.7.war. I followed the instructions on apache continuum web site. [URL]

[Code]...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved