General :: RHEL 4 Reboot Causes Tomcat Process To Not Be Started By Non-root Account
May 25, 2010
I have a startup script placed in /etc/init.d wherein I make the following call:
nohup sudo -u myuser $CATALINA_HOME/bin/startup.sh 2>&1
This causes Tomcat to be run as myuser, which is expected. However after issuing the reboot command the system starts up and root is now the owner of this process. How can I force the process to be started off as myuser on reboot?
View 1 Replies
ADVERTISEMENT
May 3, 2010
I need to kill a process which has been started by user2 if I am user1 without being sudoers or using root.Do you know if there is a way of setting that when launching the process? Such as a list of users allowed to kill the process?
View 7 Replies
View Related
Aug 16, 2010
I am new to Linux, I had Just Installed Red Hat Enterprise Linux 5 on y desktop PC, the installation is completed ok, while installation process, RHEL ask me for the root password and I had entered my password, now after the installation is finished and my PC Reboot, RHEL asks me Username, Now here I am confused, while installing RHEL it had only asked me the Password, now what is the username for RHEL? One more thing I would like to ask, I had one more Hard Disk Drive of 80GB and on it I had installed Windows XP, now I want to Dual boot Windows XP and RHEL, can I do it from two different OS installed in two different Hard Disk Drives, If yes Please Provide Procedure.
View 11 Replies
View Related
Feb 19, 2010
Consider I am logged on a machine via SSH.I execute a process having "&" at the end from a shell - I run the process in background.Then I log off from the machine.I am just wondering if it is possible to bring that process to front after I log onto the machine again?I would like to check the output of my running process.Or is there any different approach to have a process running in background and to be able to view its output (i.e. printf)
View 3 Replies
View Related
Mar 19, 2010
Centos 5.4 64bitWould like to know when a particular process was started.1.Quote:ll -d /proc/4014/dr-xr-xr-x 5 mysql mysql 0 Nov 28 07:34 /proc/4014/2.Quote:ps -o pid,lstart -p 4014 PIDSTARTED 4014 Tue Nov 17 23:10:13 20091) Which one should I consider?2) why do both have such a difference?
View 1 Replies
View Related
Jun 9, 2011
We have a Oracle 11.2 database running on Red Hat 5.5. The database have a scheduled job to fetch some files from another server using ftp, and herein lies the problem.he job runs a pl/sql that runs the function in an (by us compiled) external libraryThe ftp-functionality itself is done by using libncftp and it's API's.The process starts correctly, but then trying to login to the actual ftp host, ncftp only reports "Unknown username/password" (which is not the case).I have the exact same code in an executable and when run from an interactive shell, it works fine.So the only thing I can come up with, is there are differences when the process is started by Oracle, rather then being ordinary" process.And I am stuck.If there are any environment variables, paths etc missing when running the extproc-process, how do I find out which?Because the real problem is NOT wrong user or password.
View 8 Replies
View Related
Oct 22, 2010
me know how to find expired account in linux. I am using RHEL 4.0
View 1 Replies
View Related
Feb 10, 2010
I am trying to log into a server with a particular account. Let's say I don't know the password for that account. Can I do this using ssh? I am wondering if it is possible to do it in one command, instead of logging in as root and running su.
View 4 Replies
View Related
Aug 9, 2011
This is about an oracle application server running on RHEL platform(Linux prod.xyz.com 2.6.18-194.el5PAE #1 SMP Mon Mar 29 20:19:03 EDT 2010 i686 i686 i386 GNU/Linux). All of a sudden all the application services shut down abnormally on weekend. On the first day of the week, business users were unable to login as a result. For root cause investigation, we were unable to findout anything in the application logs. But were trying to get reboot/shutdown information from the system.....but we are bit confused with the info in /var/log/wtmp by using 'last' command(output given bellow):
[root@prod ~]# last reboot |head -2
reboot system boot 2.6.18-194.el5PA Mon Aug 8 11:26 (1+03:10)
reboot system boot 2.6.18-194.el5PA Sun Aug 7 17:27 (17:55)
We doubt the server might have gone down on Sunday(7th Aug) but there's also an entry of 8th Aug, on which day the server was running fine, no reboot/shutdown happened. If there any other way of getting info on reboot timings.
View 2 Replies
View Related
Jul 20, 2011
I have running 32bit Tomcat on 64bit Redhat machine. What is the maximum Xms Heapsize for 32bit applikation working in 64bit environment. Code: -Xms2048M -Xmx3300M Today I saw that my Tomcat swapping. Seems to bee problem with memory.
View 1 Replies
View Related
Mar 20, 2011
We have three production websites running on RHEL 3 AS running tomcat 5. After a reboot last night Tomcat will not start and has the following in the catalina.out log:
Mar 20, 2011 4:09:31 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw error
java.lang.NoClassDefFoundError: org/apache/naming/resources/ProxyDirContext
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308) .....
I have spoken with our Java Developers and they seem to think it is something up between httpd and tomcat at an OS level. Since Tomcat is not starting and giving an error that it is all ready running, I think you have a stale lock file. Look for the file /var/run/tomcat5.pid and cat or less it to see what the PID number is. If it matches the error, then delete the file and try to start Tomcat again. It should start this time.
Most common problem with Tomcat5. Try following :
1) Search PID in /tmp, if found delete it or else stop your tomcat.
2) Undeploy your application
3) Check out this link [URL] to know what causing tomcat to generate this error.
If none of them work then check your application configuration settings. [URL]. When I do start tomcat it appears to start:
[root@RPSI-2 san00]# service tomcat5 start
Starting tomcat5: Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JAVA_HOME: /usr/java/jdk1.6.0
[root@RPSI-2 san00]#
But then I try to find if it is running via ps -ef | grep tomcat5, I only receive my query. I perform the same query on Java and it also only returns my query.
View 8 Replies
View Related
May 27, 2010
How to assign CPU and memory resource to a certain process? How to assign CPU and memory resource to a certain user?Let's assume the software is no limit for resource usage.Below is a description of my situation.dual 6 core, 32G memory, RHEL5.5 client with workstation option.I run a big computation (say process1). However, I found from KDE system guard the CPU and memory are not loaded as expected. below are numbers. user% system%process1 100 0.00and CPU idle 90%, memory free 97%
View 3 Replies
View Related
Jul 18, 2010
I've a laptop running 10.04 LTS 64 bit. (Upgraded from 9.04 64bit). Some times (1 over 3) certain processes are not started at boot time : bluetooth, vboxdrv, hddtemp, cups.... (I may miss some other ones). If I use sudo and the service command I can start them by hand and if I reboot they usually start automatically. I've tried to start the laptop without the "quiet splash" options to the kernel command line but I did not see any error messages nor anything more explaining this behavior. So I wonder where I can find where the glitch is, how I can fix it, and what is the startup sequence of an Ubuntu machine (there is no /etc/inittab, and the /etc/rcN behavior does not seem to be standard)
View 4 Replies
View Related
Nov 3, 2010
I've installed the Apache Httpd Server on RH Linux. In order to start the httpd after the machine rebooted. But it failed.
I also check the /var/log/message but couldn't find any message about httpd. I have start the httpd manually. Now I can find in /var/log/message a message that "httpd started successfully"
My /etc/rc.d/init.d/httpd looks as follow. Can someone help?
Code:
#!/bin/bash
#
# Startup script for the Apache Web Server
#
# chkconfig: 345 85 15
[Code]....
View 5 Replies
View Related
Oct 6, 2010
I deleted the root line in passwd and shadow and then tried to copy the backup and was able to put it all back to normal from rescue mode. However when i get to my login screen i can not login as root anymore or even after logged in as another user i can not su - or su root, it tells me that root user does not exist......
View 14 Replies
View Related
Jul 16, 2010
I have set up my crontab and whilst Im logged in and it works (It runs my shell script), however when Im not logged in, the script does not run. Initially I set the time/date to 0 0 * * * (Midnight every day), as this did not work, I tested it with to 0 * * * * (every hour) whilst logged in and the script starts.
I use crontab -e to set it up under the root account..Im sure you dont have to be logged in for it to run?, but maybe im missing a step or just overdosing on Linux and need a holiday:-)
View 3 Replies
View Related
Mar 11, 2010
I want to add a new user. For that purposeI switch to su and give root passwd. There I gave a command " useradd ". [smith@localhost smith]#adduser when i press enter key by typing adduser command it say me "Command not found" .Then i log off from my own account and login again from root account. The command "useradd" is then accepted.is there any way that without logging off from normal user account I may enter my roor accout and work as a root account instead to log off from normal user account.
View 5 Replies
View Related
Mar 5, 2011
I need help adding a nohup command in this command line: su - rhx12 -c "/rhythx/rhythx/bin start /rhythx/rhyth" When I execute the script using root on the command line it works fine. But, when I reboot the server the process doesn't start. This script will go into the etc/init.d and rc2.d directory.
#!/bin/bash
case $i in
start)
su - rhx12 -c "/rhythx/rhythx/bin start /rhythx/rhythx"
;;
[Code]...
View 2 Replies
View Related
Dec 9, 2010
I installed Ubuntu in my PC alongside winXP. I downloaded the ISO and mounted it using a virtual image software (PowerISO used in winXP). I installed Ubuntu using wubi in a 20GB partition. During installation it asked me how much space should I give, I gave it 11gb. Everything went fine. I rebooted but now the computer hangs during startup. I went to verbose mode to see what the error is and found out that everything is ok. The last line that apears is "Setting sensors limit [OK]" and then nothing happens. I have tried every option (safe graphic mode/ demo mode etc etc) but the computer hangs.
View 1 Replies
View Related
Jun 8, 2011
Fedora 14. I have Apache HTTP Server installed and running fine. I am interested in doing some java servlet pages. Am I correct that in addition to the above I need to install another server - for example Tomcat - that knows how to process java servlets? I see that yum has tomcat. And that Tomcat is not an add on to the HTTP Server, but an alternative to it? i.e I start one or the other?
View 2 Replies
View Related
Sep 10, 2009
I started a process in a PuTTY session that I want to survive after I've disconnected. I issued a `disown` on the process (forgot to add the -h option). I've attached a small summary of the commands issued within the PuTTY session as well as an excerpt from the pstree (essentially switched user contexts twice, issued command, suspended program, disown'ed, resumed program
Command summary
Code:
> su -
> ...
> su -l <useraccount>
> ./myprogram
[Code].....
View 2 Replies
View Related
Aug 11, 2010
gkrellm process starts automatically without me indicate. In auto-run system preferences kde is not configured to start automatically, set at the time but removed it and just beginning the process continues in the background
View 7 Replies
View Related
Feb 28, 2010
I would like to find something like `time' command:$ magic_command ./executable...memory peak: 100kb
View 2 Replies
View Related
Mar 21, 2010
I started a 'dd copy�ng' of one disk drive to another. Both disks are hooked to a remote machine and I initiated the dd command by ssh_ing into it.I have to shut down the box from which i initiated the ssh session.Is there any way I can keep monitoring the status (shell script)of the copy process, ie know when the dd command terminates and whether it terminated successfully .I could then ssh into the macine from another box and still know the status.
View 1 Replies
View Related
Jul 12, 2010
I have a Web server issue for which I have hired a reputable local consultant (recommended by several people in our local Linux User Group).
For some of his tasks, he will need root access.
How do I build him an account, specifically for him that I can delete later, that will allow him both unprivileged and root access?
View 2 Replies
View Related
Feb 18, 2010
What is the user account number when you create a root user account for the system during the installation of any linux distribution? I'm not sure if its 0, 1, 10, or 100..
View 2 Replies
View Related
Jun 24, 2010
I am a user of a cluster. I don't want root to see/copy files from my user account(obviously). Is that possible to limit the access of root to users account?
View 14 Replies
View Related
Jul 15, 2011
Today I faced a very strange issue while switching to root account in a bash shell.My OS : CentOS-5.1.4
I logged in my system with account name user1 and I open the terminal and below shell opens
[user1@localhost ]$
Now when I type su and want to switch to root account , it fails
[user1@localhost ~]$ su
Password:
su: incorrect password
[user1@localhost ~]$ exit
I know the password is 123 & I m 100% sure .
View 8 Replies
View Related
Sep 4, 2011
Recently my GNOME (bottom) panel started reshuffling items after reboot.
I tried removing the panel, recreating it and placing new items on the panel. After rebooting the PC everything is undone. The panel reshuffles the items (even when the "Lock To Panel" is used). Also the items that are moved to the top panel, after rebooting return to the bottom panel.
Does anyone have a solution for this issue?
View 1 Replies
View Related
Aug 31, 2009
In the ubuntu series I find my hard disk description as this: /dev/sda. As we know in slackware (10.1) for partitioning we either use 'fdisk' or 'cfdisk' when I use fdisk, like mentioned: fdisk /dev/sda. It says disk cannot be found.... or something like that. I think I know why?
You see my hard disk has the D: E: F: as extended partitions comprising logical drives and only my C: drive is pure primary. Does this have any connection with my problem? As from my explanation you can find that I'm a total wreck with computers.. but I'm very thrilled to learn linux. The reason why I need slax is that I require a traditional root account.
View 14 Replies
View Related