John - Have you ever been, or thought of being a professor? ; ) Actually, I don't think Tomcat was running at boot because after I rebooted the server I could not access the index page through my website:8080.
I think I see my mistake. What I did was I created a group tomcat and a user tomcat under that group, and I added myself to that group and made myself owner of just the webapps directory. I kept owner of the other directories such as bin as owned by root. So when I went to start Tomcat as myself, it gave me a permission denied. So I used the "su -" command and started it as root. I am going to change owner of the entire tomcat directory to myself. And I will give user tomcat executable rights. After starting Tomcat manually I was able to see mywebsite:8080/index.jsp. Maybe the PPID of the first java process is 1 only because I started it as root (looking at the file it seems all processes that were started as root have a PPID of 1)... Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -----Original Message----- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 12:39 PM To: 'Tomcat Users List' Subject: RE: [OFF-TOPIC] RE: Na�ve question about root Good questions, all. :) 1) Apache has a lot of processes, one is the root process used to bind to port 80, the others are children ready to serve HTTP requests. That's normal. The root process on 80 is the one attributed to user "root", the children for request serving are the processes attributed to user "apache". Most people use user "nobody" for Apache (nobody is a special type of restricted user), but its not a big deal. 2) Yeah, those Java processes are normal. They are all Tomcat. To change them from running as root, you want to create a tomcat user, and then do a "su - tomcat", then start up Tomcat. Once Tomcat is started, you can type "exit" and go back to your regular user. You'll want to make sure the CATALINA_HOME tree and files are at least readable and executable by user tomcat. You should change the processes to run as a non-root user when you can. The less things that run as root on your system, the better. Root should always be an informed exception, never a lazy norm (not that you're lazy, I think you get what I mean). 3) actually, from that process list you posted, Tomcat is running on boot. You can see this by looking at the first "java" process. It has a PPID of 1. PPID = Parent Process ID, that is, the process that started it. For example, if you started Tomcat from a normal shell session, the PPID would be the PID of your login session. In this case, the PPID is 1. 1 is the system init process, or the process that is in charge of starting everything up on boot. Your Tomcat has a PPID of 1, so it started at boot. I'm not sure what happened with you starting it afterwards, my guess is the one you started by hand just failed without making a fuss and let the one that started on boot keep going. 4) I'm working on the HOWTO. HTH John > -----Original Message----- > From: Denise Mangano [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 18, 2002 12:32 PM > To: 'Tomcat Users List' > Subject: RE: [OFF-TOPIC] RE: Na�ve question about root > > > Hi all, I followed everyone's suggestions and so far so > good. I set up the > users like John suggested, and disable the desktop > environment like Matt > suggested. I disabled this service by changing my run level > to 3. I now > have to get Tomcat back into the startup... For now I have started it > manually. But here is the weird thing... > > Why so many processes running for Apache, and java (below)... > I ran ps -ef > after reboot and before I started Tomcat and the java > processes were not > listed. Is this normal? Also, how change the java processes > from running > as root (if I need to)? And lastly, which one of these is supposed to > represent the Tomcat service running? > > John - any word on that new HOW-To yet for 4.1.17? I'm going to get > cracking on that in a little bit :) > > Thanks in advance for any thoughts/advice!! : ) > Denise > > UID PID PPID C STIME TTY TIME CMD > root 1 0 0 11:37 ? 00:00:04 init > root 2 1 0 11:37 ? 00:00:00 [keventd] > root 3 1 0 11:37 ? 00:00:00 [ksoftirqd_CPU0] > root 4 1 0 11:37 ? 00:00:00 [kswapd] > root 5 1 0 11:37 ? 00:00:00 [bdflush] > root 6 1 0 11:37 ? 00:00:00 [kupdated] > root 7 1 0 11:37 ? 00:00:00 [mdrecoveryd] > root 13 1 0 11:37 ? 00:00:00 [scsi_eh_0] > root 14 1 0 11:37 ? 00:00:00 [scsi_eh_1] > root 17 1 0 11:38 ? 00:00:00 [kjournald] > root 96 1 0 11:38 ? 00:00:00 [khubd] > root 190 1 0 11:38 ? 00:00:00 [kjournald] > root 191 1 0 11:38 ? 00:00:00 [kjournald] > root 192 1 0 11:38 ? 00:00:00 [kjournald] > root 193 1 0 11:38 ? 00:00:00 [kjournald] > root 559 1 0 11:38 ? 00:00:00 syslogd -m 0 > root 564 1 0 11:38 ? 00:00:00 klogd -x > rpc 584 1 0 11:38 ? 00:00:00 portmap > rpcuser 612 1 0 11:38 ? 00:00:00 rpc.statd > root 762 1 0 11:38 ? 00:00:00 /usr/sbin/sshd > root 795 1 0 11:38 ? 00:00:00 xinetd > -stayalive -reuse > -pidfil > root 823 1 0 11:38 ? 00:00:00 sendmail: accepting > connections > root 842 1 0 11:38 ? 00:00:00 gpm -t ps/2 > -m /dev/mouse > root 865 1 0 11:38 ? 00:00:00 /usr/sbin/httpd > -DHAVE_ACCESS -D > apache 868 865 0 11:38 ? 00:00:00 /usr/sbin/fcgi- > -DHAVE_ACCESS -D > apache 870 865 0 11:38 ? 00:00:00 /usr/sbin/httpd > -DHAVE_ACCESS -D > apache 871 865 0 11:38 ? 00:00:00 /usr/sbin/httpd > -DHAVE_ACCESS -D > apache 872 865 0 11:38 ? 00:00:00 /usr/sbin/httpd > -DHAVE_ACCESS -D > apache 874 865 0 11:38 ? 00:00:00 /usr/sbin/httpd > -DHAVE_ACCESS -D > apache 875 865 0 11:38 ? 00:00:00 /usr/sbin/httpd > -DHAVE_ACCESS -D > apache 876 865 0 11:38 ? 00:00:00 /usr/sbin/httpd > -DHAVE_ACCESS -D > apache 877 865 0 11:38 ? 00:00:00 /usr/sbin/httpd > -DHAVE_ACCESS -D > apache 879 865 0 11:38 ? 00:00:00 /usr/sbin/httpd > -DHAVE_ACCESS -D > root 892 1 0 11:38 ? 00:00:00 crond > xfs 946 1 0 11:38 ? 00:00:00 xfs -droppriv -daemon > daemon 982 1 0 11:38 ? 00:00:00 /usr/sbin/atd > root 991 1 0 11:38 tty1 00:00:00 /sbin/mingetty tty1 > root 992 1 0 11:38 tty2 00:00:00 /sbin/mingetty tty2 > root 993 1 0 11:38 tty3 00:00:00 /sbin/mingetty tty3 > root 994 1 0 11:38 tty4 00:00:00 /sbin/mingetty tty4 > root 995 1 0 11:38 tty5 00:00:00 /sbin/mingetty tty5 > root 996 1 0 11:38 tty6 00:00:00 /sbin/mingetty tty6 > root 999 762 0 11:39 ? 00:00:00 /usr/sbin/sshd > weblogin 1000 999 0 11:39 pts/0 00:00:00 -bash > root 1117 1 32 11:55 pts/0 00:00:06 > /usr/local/j2sdk1.4.1/bin/java - > root 1118 1117 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1119 1118 4 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1120 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1121 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1122 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1123 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1124 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1125 1118 7 11:55 pts/0 00:00:01 > /usr/local/j2sdk1.4.1/bin/java - > root 1128 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1129 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1130 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1131 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1132 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1133 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1134 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1135 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1136 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1137 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1138 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1139 1118 1 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1140 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1141 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1142 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1143 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1144 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > root 1145 1118 0 11:55 pts/0 00:00:00 > /usr/local/j2sdk1.4.1/bin/java - > weblogin 1147 1000 0 11:55 pts/0 00:00:00 ps -ef > weblogin 1148 1000 0 11:55 pts/0 00:00:00 more > > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
