Solved

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

Posted on 2011-09-21
2
291 Views
Last Modified: 2012-05-12
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
Comment
Question by:J C
  • 2
2 Comments
 
LVL 13

Expert Comment

by:themrrobert
ID: 36577061
as root run the follow:

# ps -AF

this will show you the username in the first column
0
 
LVL 13

Accepted Solution

by:
themrrobert earned 500 total points
ID: 36577064
or:

#  ps -AF | grep servicename

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

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
Fine Tune your automatic Updates for Ubuntu / Debian
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question