How to check to see if a service is running as root

I am using Yosemite Server Backup to backup my linux servers. I need to be able to prepare the server for the backup using a pre execution command. The environment is set so the command doesn't need to be put inside of a specific path in order for it to run. The only thing that I can think of is that the backup service is not running as root and doesn't have permission to run it. Can someone tell me how to check to see if the service is running as root? Any other ideas would be appreciated!

Linux is Redhat Server 5 or 6
J CAsked:
Who is Participating?
 
themrrobertConnect With a Mentor Commented:
or:

#  ps -AF | grep servicename

should also work, a bit more precisely if you use the service's binary name
0
 
themrrobertCommented:
as root run the follow:

# ps -AF

this will show you the username in the first column
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.