Re: error message: 'user tomcat4 does not exist'

2002-07-15 Thread Scott and Michele

thanks to both of your replies, I undid my original modification and did the
following:

Edited the conf file using: vi etc/tomcat4/conf/tomcat4.conf

Change the user section of this file from:
TOMCAT_USER="tomcat4"
to
TOMCAT_USER="myUser"

Then I entered (from root):
chown -R myUser /var/tomcat4/

to give ownership of the tomcat4 files/directories to myUser

Now when I am logged in as myUser, I can start/stop tomcat.

Thanks again for your help and for rescuing me from my newbie-ness.

S




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: error message: 'user tomcat4 does not exist'

2002-07-14 Thread Eddie Bush

Oh no!  You don't want to do that!  Then (if there is some vulnerability 
in Tomcat) a malicious user could do whatever they want to!

Don't do this on a production box!  Don't do this on any box that 
has any importance at all - ie information you don't want hosed!

[EMAIL PROTECTED] wrote:

>
>Tomcat4 was running well on my Linux PC untl I reinstalled mod_perl and tried to
>install Apache.
>
>Now when I login as su (root) and type the command:
>"/etc/rc.d/init.d/tomcat4 start"
>
>I get the message:
>"Starting tomcat4: chown: 'tomcat4:tomcat4': invalid user
>chown: 'tomcat4:tomcat4': invalid user
>chown: 'tomcat4:tomcat4': invalid user
>chown: 'tomcat4:tomcat4': invalid user
>su: user tomcat4 does not exist"
>
>
>This command has worked fine until I messed with mod_perl.  
>
>Any assistance on how to fix this and get the user tomcat4 back would be greatly
>appreciated.  
>
>Please note the file tomcat4 exists in the directory /etc/rc.d/init.d/
>
>
>
>
>In case anyone is interested, I fixed this by editing
>etc/tomcat4/conf/tomcat4.conf .  In this file, I changed:
>TOMCAT_USER="tomcat4"
>to
>TOMCAT_USER="root"
>
>
>
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: error message: 'user tomcat4 does not exist'

2002-07-14 Thread Ben Walding

While it works if you run as root, you're better off not doing that. 
 The less privileges you give to your processes the better, if something 
goes wrong in your application or tomcat, the most damage it can do is 
to itself.  If you give it root privileges, it can do anything it wants 
to the whole system.



You could probably have just created the tomcat4 user, how it 
disappeared is anyone's guess.

useradd tomcat4

(which creates a tomcat4 group also)



[EMAIL PROTECTED] wrote:

>
>Tomcat4 was running well on my Linux PC untl I reinstalled mod_perl and tried to
>install Apache.
>
>Now when I login as su (root) and type the command:
>"/etc/rc.d/init.d/tomcat4 start"
>
>I get the message:
>"Starting tomcat4: chown: 'tomcat4:tomcat4': invalid user
>chown: 'tomcat4:tomcat4': invalid user
>chown: 'tomcat4:tomcat4': invalid user
>chown: 'tomcat4:tomcat4': invalid user
>su: user tomcat4 does not exist"
>
>
>This command has worked fine until I messed with mod_perl.  
>
>Any assistance on how to fix this and get the user tomcat4 back would be greatly
>appreciated.  
>
>Please note the file tomcat4 exists in the directory /etc/rc.d/init.d/
>
>
>
>
>In case anyone is interested, I fixed this by editing
>etc/tomcat4/conf/tomcat4.conf .  In this file, I changed:
>TOMCAT_USER="tomcat4"
>to
>TOMCAT_USER="root"
>
>
>
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




error message: 'user tomcat4 does not exist'

2002-07-13 Thread young92

Tomcat4 was running well on my Linux PC untl I reinstalled mod_perl and tried to
install Apache.

Now when I login as su (root) and type the command:
"/etc/rc.d/init.d/tomcat4 start"

I get the message:
"Starting tomcat4: chown: 'tomcat4:tomcat4': invalid user
chown: 'tomcat4:tomcat4': invalid user
chown: 'tomcat4:tomcat4': invalid user
chown: 'tomcat4:tomcat4': invalid user
su: user tomcat4 does not exist"


This command has worked fine until I messed with mod_perl.  

Any assistance on how to fix this and get the user tomcat4 back would be greatly
appreciated.  

Please note the file tomcat4 exists in the directory /etc/rc.d/init.d/






--
To unsubscribe, e-mail:   
For additional commands, e-mail: