• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Linux best practices to run applications

 
Ranch Hand
Posts: 10192
3
Mac PPC Eclipse IDE 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!
 
Rancher
Posts: 43016
76
  • 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: 10192
3
Mac PPC Eclipse IDE 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?
 
Saloon Keeper
Posts: 22265
151
Android Eclipse IDE Tomcat Server Redhat Java 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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic