CentOS 5 :: Make Tomcat Startup At Boot As Non Root User?

May 4, 2009

Can anyone tell me how to make this script,( located in /etc/init.d/tomcat ) startup at boot time under the tomcat user and not the root user?

#!/bin/bash
# tomcatStartup Script for Tomcat
# chkconfig: 2345 20 80
# description: Tomcat Server basic start/shutdown script
# processname: tomcat
# pidfile: /var/run/tomcat.pid

[Code]...

View 5 Replies


ADVERTISEMENT

General :: Log On As Another Regular But No Root User With That Password And Boot Up Into Centos

Jul 22, 2011

I forgot the root passwd for linux (via the "single" mode) and, according to all confirms, did so successfully! I then try to log on to Centos as root, and I can't....it says "incorrect passwd"! So then I log on as another, regular, but not root, user, with that passwd, and boot up into Centos. if I try to "su" to root, with the new root passwd, again it says its incorrect. there is no "system admin" passwd set. I checked!. I need root access within Centos!

View 8 Replies View Related

CentOS 5 :: Tomcat 5.5 Does Not Start At Boot?

Nov 21, 2009

I have installed Tomcat 5.5 on a server with Centos 5.2. I can start Tomcat from command line with:

/var/lib/tomcat5/bin/catalina.sh start but if I add the command to /etc/rc.local Tomcat don't start on boot, I need to login and manually start. I have add other services to the /etc/rc.local file (mysql and apache) and all start with no problem. Only Tomcat failed to start on boot.

I added the JAVA_HOME to /root/.bashrc:
export JAVA_HOME=/usr/lib/jdk
export PATH=$JAVA_HOME/bin:$PATH
export CATALINA_HOME=/var/lib/tomcat5
export CATALINA_BASE=/var/lib/tomcat5

I have tried many different things I found on the net, but nothing worked for me.

View 4 Replies View Related

General :: Make My GUI User A Root One?

Jan 23, 2011

I'm using Debian Squeeze, and I need to give to my gui user (the gnome user I think its called) root permission, I mean, I want to explore, read and write anything I want using my GUI user, how can I do it?

View 14 Replies View Related

OpenSUSE :: Make Shutdown Without Root User Using Visudo?

Jun 13, 2010

I was trying to make shutdown without root user using visudoI tried the following still it did not work for mehawk ALL=NOPASSWD:/sbin/shutdown -h now

View 6 Replies View Related

CentOS 5 Server :: Make Script Executable On Startup?

Aug 27, 2010

I'm trying to execute script (java,php) on startup....before this we set it in /etc/inittab and it works find, but lately i found that the php script not startup as usual after we do yum update( although java script still run normally). code...

Another thing i want to ask is, if i have more scripts to run at startup, what should i do becoz there is limited terminal that i can use.
Someone told me that i can:

1)-put the script in /etc/init.d such that i can add it with chkconfig and run as service (not sure how to do this in details also)

2)-add a script in /etc/rc.local (not sure how?write what script)

View 6 Replies View Related

Ubuntu :: Application - Run Tomcat 5.5 At Startup

Jan 9, 2010

I am trying to run my tomcat 5.5 at startup.. I went to System-->Preferences-->Startup applications and entered the command to launch my script: /bin/sh /home/marco/apache-tomcat-5.5/bin/catalina.sh run

But when i restart ubuntu, my tomcat does not run and i dont know where to find the proper logs to see what happened.

View 2 Replies View Related

General :: Command Shortcut To ./startup.sh Tomcat?

Sep 19, 2011

Every time I need to start or stop Tomcat, I am navigating to:

/Tomcat_Dir/bin

and once I am in the folder I enter:

./Startup.sh

And to stop the server, I navigate to the same directory and enter:

./Shutdown.sh

I was wondering if there was a way in Linux to alias the above described process, so that from any location in the filesystem, I can simply type in something like

StartTomcat or StopTomcat to perform the Startup and Shutdown of the web-server?

View 2 Replies View Related

Fedora X86/64bit :: User That Can Only Make The Sound Card Work On A F10 X86_64 System Is Root

May 4, 2009

The only user that can make the sound card work on a F10 x86_64 system is root. For non root users, I am not seeing any error messages when a app tries to use/access the sound card, just nothing plays. As I said, for root everything works as expected. I am sure this is a permission/setup issue, but I have no idea where to start.

View 3 Replies View Related

Server :: Tomcat 6 - Avoid Automatic Webapp Startup?

Apr 13, 2011

I know it might seem a stupid question, but i'm gettin' nuts over avoiding webapp auto startup on Tomcat restart.i have a server, used for developing. Its tomcat has a bunch of webapps deployed. MOst of them are old/kept just for the sake of it, and I would like to avoid TC to start them on start / restart. How do I prevent a context to autostart on service start / restart?

I would like to go in the config files and selectively choose the apps to start. When tomcat is started, if anyone needs an app to be started, i would like to do it from the manager. But when I restart TC, i would like my choices to be up and running only.

View 1 Replies View Related

CentOS 5 :: FTP User To Access To Root?

Jul 19, 2011

Hey I have made a user so that he is able to access my ftp files though filezilla.

However he does not have access to the root folder. How can I edit this?

View 2 Replies View Related

Server :: Finding A Tomcat Startup Script On A Ubuntu Machine?

Feb 17, 2011

I am looking for a tomcat startup script on a Ubuntu machine. My Ubuntu is 10.04 server. The tomcat is 5.5.30. It is in /opt/apache-tomcat-5.5.31 I tried a script here

Code:

#!/bin/bash
#
# tomcat
#
# chkconfig:

[code]....

View 18 Replies View Related

CentOS 5 :: Flash Does Not Start In Root But Does For User?

Aug 22, 2009

As root, firefox shows that no plugins are installed - does not see flash-plug. For the other user the flash-plugin is there however it only load for the first instance and then will only start again if I reload the page.

Yes I am new to Linux - I have just installed Centos 5.3 and via yum install adobe flash-plugin - lots of searching on the web to get this far.

View 3 Replies View Related

Software :: Make An Application Startup On Boot Time And Instantly Minimize?

Nov 12, 2010

Me and my mom are sharing a laptop.My mom likes to use Google Chrome. I like to use Opera. Is there any way I can tell the system to start the Opera application , but then instantly minimize it to the tray bar? I want that because : if my mom starts the computer and I'm not around , I still want all the tabs in my Opera to load , without my mom knowing anything about my "malefic" plan ...

View 6 Replies View Related

CentOS 5 :: Access Denied For User 'root'@'localhost'

Jan 27, 2009

I followed this tutorial for setting up my server. Whatever I type into mysql or mysqladmin all I get back is Quote:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

View 1 Replies View Related

CentOS 5 :: Xorg: No Profile For User 'root' Found

Jul 28, 2009

I'm trying to get Xorg running on a Dell 2850.I can't get it to work.I installed xorg-x11-drivers via yum, and used both "Radeon / ati" drivers, including the default vesa.

Here are the main errors (error log file attached):

Could not init font path element unix/:7100, removing from list!
(**) RADEON(0): RADEONSaveScreen(2)
localuser:root being added to access control list
No profile for user 'root' found

[code]...

and at the end it says:

FreeFontPath: FPE "built-ins" refcount is 2, should be 1; fixing.

View 1 Replies View Related

CentOS 5 :: Removing Root SSH Access / Adding New User?

Jul 13, 2010

I am going to remove root access via SSH which seems fine but I don't know how to add a new user, do I have to create a group first or are there existing groups I can add a user to, and does it matter which group I add a user to if I want this user to have root access with sudo?

View 11 Replies View Related

CentOS 5 :: Make Firefox Add-ons Universally And Not Just On A Particular User

May 11, 2009

How to make firefox add-ons universally and not just on a particular user

I have install firefox add-ons no-script on root, but when I login as normal user the no-script add-ons is not installed.

Do anyone know how to make firefox add-ons universal?

View 2 Replies View Related

General :: Grub - Boot From Usb / During Startup System Complains About No Root Bein Found On /dev/sdb1?

Jun 2, 2011

I have installed a new Linux distro (just to test it) on my usb memory stick, and I'm trying to run it. I don't know if what I did is correct so far, anyways here's what I have:

Grub on sda (internal hard disk)
sdb with no boot loader (memory stick)

In grub I've been doing:
root (hd1,0)
kernel /kernel-genkernel-x86_64-2.6.37-sabayon root=/dev/sdb1 vga=normal
initrd /initramfs-genkernel-x86_64-2.6.37-sabayon
boot

This seems to work (as opposed to when I forgot the root= parameter, which almost destroyed my linux on sda1 ), but during startup the system complains about no root bein found on /dev/sdb1. I also tried (hd1,0), but it didn't change much.

I'm sure I can boot an OS from usb on my computer, so doesn anyone know what I'm doing wrong?

View 4 Replies View Related

CentOS 5 Networking :: How Do I Set Sbin In Default Path For Non Root User

Jun 25, 2009

I'm running a server with CentOS 5 where the software that needs to run on the server uses ifconfig to verify the system IPv4.The problem is that /sbin isn't set for the user that is supposed to run the software (sadmin) which means the software can't execute ifconfig and thus terminates.now the workaround I've been using is simply to input.

View 10 Replies View Related

CentOS 5 :: Enter Password For Root User - SSH Access Denied

Apr 18, 2011

I have a new CentOS server install. I am trying to connect from a windows xp box using putty ssh. I can get as far as putting in the password for root user and then it tells me access denied.

View 2 Replies View Related

Software :: Change A Process Running In Root-user To Non-root User ?

Oct 28, 2009

Is It possible to change a process running in root-user to non-root-user by setting suid / uid / euid / gid etc... I so please instruct how, when and wat to set in order to change a process running in root-user to non-root user

View 4 Replies View Related

CentOS 5 :: Recover / Reset Password For Root Via Single User Mode

Oct 20, 2009

Can someone assist me with recovering/resetting the password for Root via Single User Mode in CentOS v5? I've modified the kernel line using Single, S, and 1 but it appears that these commands are being totally ignored as the server continues with the boot process and displays the GUI logon screen. The server in question is a VM box running on ESX v3.5 U4. The person that created this VM is no longer employed here and I've exhausted everything I know regarding Single User Mode.

View 12 Replies View Related

Ubuntu :: Make A Program Start On Boot, But Not Under Root?

Jul 7, 2010

I need to make my website autostart after reboot. I may just add it to rc.local but i don't want it to start under root

View 1 Replies View Related

OpenSUSE Install :: Gnome Won't Boot As Non-root User?

Feb 1, 2010

this is a strange one. running 11.2 pae 32 bit kernel with all the most recent updates and gnome. This is a fresh install. I built the machine, and then installed all my repositories and software, and used the machine for about 2 days, and now when I log in it hangs on logging into gnome. it's strange because the wireless notification about available wireless networks is in the top left corner of the screen, and nothing else happens. I can log in as root.I also had this issue before I formatted the machine (that's why I formatted)

View 9 Replies View Related

Server :: Tomcat Is Not Working - How To Make It Work

Mar 9, 2010

Whenever I am starting Tomcat5 service in RHEL5 it is showing that it is starting but after some time (after 5 sec.) the status it is showing that lock file found but there is no such process for PID * (where * = different PID no.) and tomcat is not working.

View 2 Replies View Related

CentOS 5 Server :: Writing Init Script For Wrapper - Start As Root Run By User

Nov 27, 2009

I have installed the Apache Directory Server (ApacheDS) Now I need a iniscript that startining the App as Root, so that it can use the Port 389. After them a unprivileged User (apachds) should run the Service. The same solution I am searching for Glassfish. What can I use for them? RHEL and compatibles doesn't have a start-stop-daemon like Debian.

View 3 Replies View Related

Fedora Installation :: Unable To Boot Or Switch User To Root On Fc13

Aug 18, 2010

Having just installed fc13 and downloaded the KDE package I attempted to log out as user and back in as root, but I keep getting a message about the wrong password. This is odd as the same password works in terminal if I try to become a SuperUser. I have tried turning off SELinux to no avail. I cannot log in from cold as root,only as user.

View 1 Replies View Related

CentOS 5 Server :: Ntpd Startup Fails During Boot

Sep 1, 2010

ntpd startup fails during boot.Does startup just fine manually from command line once it's booted though. Any suggestions what I might adjust?

View 2 Replies View Related

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 View Related







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