• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 306
  • Last Modified:

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
0
J C
Asked:
J C
  • 2
1 Solution
 
themrrobertCommented:
as root run the follow:

# ps -AF

this will show you the username in the first column
0
 
themrrobertCommented:
or:

#  ps -AF | grep servicename

should also work, a bit more precisely if you use the service's binary name
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now