LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2012, 03:43 PM   #1
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Rep: Reputation: 1
tomcat installation


I installed tomcat by creating a user tomcat and tomcat folder is owned by user tomcat.

My app whihc I will deploy in tomcat write some logs and it needs some folders for file based persistance.
so all it needs is some directories.
as I installed tomcat for user tomcat when my application starts up the folders it will use should also be owned by tomcat ?
 
Old 05-10-2012, 03:45 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
by default yes, you can specify which user tomcat runs under in the tomcat config files. Default user/group is tomcat.
 
Old 05-10-2012, 03:52 PM   #3
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Kustom42 View Post
by default yes, you can specify which user tomcat runs under in the tomcat config files. Default user/group is tomcat.
the good practive is to create these folders in tomcat home directory?
when I tried

cat /etc/passwd

it returned

tomcat:x:501:502::/home/tomcat:/usr/sbin/nologin

is tomcat home /home/tomcat ?
what is /usr/sbin/nologin ?
 
Old 05-10-2012, 03:56 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
the last field containing the nologin is the default shell for the user. The /home/tomcat is the tomcat users home directory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Tomcat installation Pavanish Linux - Newbie 1 02-07-2011 04:52 AM
Tomcat Installation crazycondor Linux - Newbie 1 12-19-2006 07:42 PM
Tomcat installation zakidad Linux - Newbie 3 07-12-2005 02:15 AM
Tomcat Installation Randvegeta Linux - Software 0 04-26-2005 05:34 AM
tomcat installation on redhat jkmartha Linux - General 1 04-11-2005 09:52 AM


All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration