Solved

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

Posted on 2011-09-21
2
292 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Fine Tune your automatic Updates for Ubuntu / Debian
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

762 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