1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2012
    Rep Power

    Tomcat permissions


    I upgraded my application to the recent version, and after upgrade noticed that the some of the directories that are created after upgrade have root permission instead of tomcat. My tomcat is running on linux. how to set the permissions to tomcat and not as root.

  2. #2
  3. Providing fuel for space ships
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2004
    nr Edinburgh, Scotland
    Rep Power
    You can change the ownership of the directory and files by using the chown command.
    chown owner:group directory
    For example:
    chown -R tomcat:tomcat /usr/local/tomcat
    Note the use of the 'R' flag - this means that it'll recursively change the ownership of the files under the /usr/local/tomcat directory
    The No Ma'am commandments:

    1.) It is O.K. to call hooters 'knockers' and sometimes snack trays
    2.) It is wrong to be French
    3.) It is O.K. to put all bad people in a giant meat grinder
    4.) Lawyers, see rule 3
    5.) It is O.K. to drive a gas guzzler if it helps you get babes
    6.) Everyone should car pool but me
    7.) Bring back the word 'stewardesses'
    8.) Synchronized swimming is not a sport
    9.) Mud wrestling is a sport

IMN logo majestic logo threadwatch logo seochat tools logo