Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I installed my Tomcat as root user in Linux for testing purpose and It's working fine. I would like to change the user for security purpose, So that owner of log files and other files will be created with new user. How can I do this. Please help me.

Thanks

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Tomcat normally running as Root. For security reasons, it is always best to run services with the only those privileges that are necessary. Here i have mentioned only for the tomcat installation from the source file

You can do modify the tomcat owner from root as follow

  1. Create the group and user for tomcat.
  2. Change ownership of the tomcat installation files recursive to the user you have created.
share|improve this answer
    
Can you please help me how to change ownership of the tomcat installation files to user for tomcat? –  Selvakumar P Mar 8 '12 at 8:35
    
Thanks Got it !!! –  Selvakumar P Mar 8 '12 at 9:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.