• Post Reply Bookmark Topic Watch Topic
  • New Topic

Linux best practices to run applications  RSS feed

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

Can you help me with pointing to some best practices that I can follow to install and run application servers and databases on a Linux box? I have a root user and I created another user that has root previliges. I would like to install a web application server, a database. The question now is, with what users should I install and run these servers? I'm thinking of creating a homeless user that would run the database and another homeless user that would run the application server. Is this advisable or any other ideas? Please suggest!
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using separate non-login accounts for the servers is a good approach.
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm just a bit perplexed on how to organize this into users and groups. Let's say, I create a user that has no home and this user only can start and stop the application server. I create another user that can start and stop the database server. Now to what groups should I assign these two users? I already have another user with which I ssh into the server and install softwares on the Linux box. Any thoughts?
 
Tim Holloway
Saloon Keeper
Posts: 18797
74
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Red Hat family of Linux distros creates custom users and groups for its server applications as part of the RPM install process. For example, the Apache2 http webapp server runs under user apache/group apache, the apache user is a no-login user. Likewise, the PostgreSQL database is user postgres/group postgres.

Other distros tend to package their apps similarly. Only in cases where you are building and installing your own apps do you have to do anything special.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!