A "su" command will always ask for a password if you issue the command as
some other user than root.  If it didn't userA on a UNIX box could switch to
userB at will.  This is a security risk.

I'm not clear what you've done so far, in your previous thread on this topic
you stated that you had set TOMCAT_USER=root.  If this is true, and you are
logged in as myUser, then you will most definitely have to enter a password
to run tomcat as TOMCAT_USER (which is root, according to your previous
message).  You can't run things as root when logged in as a normal user
without entering a password.

If you are logged in as myUser, and you want tomcat to start, you just need
to start it.  I have tomcat installed, I do not have TOMCAT_USER set
anywhere, and when I want to start it I just su to the tomcat user (using
"su - tomcatuser" since my tomcat user is not the same as my username), and
start it up.

So the short answer is that if you are not root, anytime a su command is
issued, you will need to enter a password.  Only root has the ability to su
without entering a password.

John Turner
[EMAIL PROTECTED]


-----Original Message-----
From: Scott and Michele [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 8:23 PM
To: [EMAIL PROTECTED]
Subject: Tomcat requesting password at start up


I posted and earlier message at this thread:
http://www.mail-archive.com/[email protected]/msg59606.html

My problem was fixed and then I changed my etc/tomcat4/conf/tomcat4.conf
file to include:
TOMCAT_USER="myUser"

This seemed to work fine, and I chown on the files I thought I would need to
run tomcat under a user other than root ('myUser').

Now when I am logged in as myUser and I enter the command :
/etc/rc.d/init.d/tomcat4 start
I get a slight delay then a message :
starting tomcat4:  Password:

When I hit enter or try myUser's password, here I get the message:
su:  incorrect password:

Any idea why this is asking for a password now?  Tomcat runs fine when I log
in as root, but I do not want to do that for the reasons noted in my earlier
post.

Thanks



--
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]>

Reply via email to