How do I run apps as a non-root user in redhat 6/7 ?

in the past I just let the install rpm set up an non root userid for an application.  
 
Where I am now we download source need to run it as non-root user without the RPM package taking care of this for me.
This is for newer versions of Redhat !

Does the rpm su to the user, runuser user another way of running an app ( apache, tomcat etc ) as a non-root user?

Regards;
Timfox123
TIMFOX123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nick UpsonPrincipal Operations EngineerCommented:
you need to "su" to root or equivalent like sudo and then install / run as root

the rpm cannot su as there are too many different ways to validate
omarfaridCommented:
Can you elaborate more on requirement? Can you give example?
arnoldCommented:
I think this deals with setting up the run scripts
you would need to create a run script ref example /etc/init.d chkconfig line deals with when the service should start (which run levels) and similarly which run levels it should stop. ....

you need to include the requisite parameters in the start script to indicate that the app has to run using a non-root user after you create the non-root user that will be used by this app.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.