• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Linux best practices to run applications

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using separate non-login accounts for the servers is a good approach.
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
These are not the droids you are looking for. Perhaps I can interest you in a tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic