[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2011-09-21
2
Medium Priority
?
299 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 2000 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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

656 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