12

I have a Cassandra service on my Ubuntu but I cannot figure under what user this service runs. I know how to find the owner and the permissions of files and directories. But how can I do this for a Ubuntu service. Assuming the service is just an executable file, how can I find the location of a particular service?

karel
  • 122,292
  • 133
  • 301
  • 332

1 Answers1

12

You can use ps -ef to known who is running cassandra.

All services are located in /etc/init.d/.

If you are not running cassandra as a service, you can search where is the program with the whereis command:

$ whereis cassandra
Quentin
  • 1,317