How do I know which processes are running and who own the process?

user4951

I want to change the mongodb database directory. Some says that I need to change the owner of the new directory to the username that is running mongodb

https://stackoverflow.com/questions/5798549/why-cant-i-start-the-mongodb

How do I know which user is running the mongodb service?

Well I suppose I just look at all the processes and see who own those processes.

How do I see the running processes.

I run the answer and get this. Looks like the user is mongodb. Not ubuntu, not root, but mongodb

root@ip-10-138-30-205:/media/newdrive# ps aux | grep mongodb
mongodb  17140  0.3  5.2 131484 31832 ?        Ssl  11:35   0:00 /usr/bin/mongod --config /etc/mongodb.conf                                                                                                                      
root     17154  0.0  0.1   8096   936 pts/0    S+   11:38   0:00 grep --color=auto mongodb     
Manula Waidyanatha

Use ps aux | grep mongodb. It returns the processes running in the computer whose name contains mongodb. Search for the mongodb process in that list. The first column has the user who runs the process.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I know which processes are running and who own the process?

From Dev

How do I know which process (PID) to kill to kill all sleeping processes?

From Dev

How do I know which version of Debian I'm running?

From Dev

How do I know the remote process is running, or complete?

From Dev

How do I know the remote process is running, or complete?

From Dev

How can I determine how many background processes are running in bash and do a "wait" for each background process?

From Dev

How do I kill all other running python processes without killing the parent process

From Dev

In which order PCA components is printed? I need the parameters to solve pca formula. How do I know who the beta values are?

From Dev

How to know the process of the terminal which is running in Linux command?

From Dev

How to know which script/binary/other running process?

From Dev

How do I know which build of Chrome I'm running, 32bit or 64bit? How do I change it

From Dev

How do I know which script in running Chrome causes to open a new pop-up?

From Dev

How do I know which value is selected

From Dev

How do I know who to blame for hackage inconsistencies

From Dev

How do I know who to blame for hackage inconsistencies

From Dev

how do I know if and why linux is killing my processes?

From Dev

How to know which process died when monitoring two processes in while loop

From Dev

How do operating systems know which process is calling a function?

From Dev

How can I know which type of process of linux will use for these?

From Dev

How can I know which process is using swap?

From Dev

How can I know the process name which is opening a tcp port?

From Dev

How can I know which type of process of linux will use for these?

From Dev

How can I know the absolute path of a running process?

From Dev

How can I know which tasks are running in the background?

From Dev

How do I know which view is associated with which controller?

From Dev

How do I run multiple processes with the same process group id?

From Dev

How do I find out which processes are preventing unmounting of a device?

From Dev

How do I determine which processes are accessing a usb device?

From Dev

How do I detect running processes using a library package?

Related Related

  1. 1

    How do I know which processes are running and who own the process?

  2. 2

    How do I know which process (PID) to kill to kill all sleeping processes?

  3. 3

    How do I know which version of Debian I'm running?

  4. 4

    How do I know the remote process is running, or complete?

  5. 5

    How do I know the remote process is running, or complete?

  6. 6

    How can I determine how many background processes are running in bash and do a "wait" for each background process?

  7. 7

    How do I kill all other running python processes without killing the parent process

  8. 8

    In which order PCA components is printed? I need the parameters to solve pca formula. How do I know who the beta values are?

  9. 9

    How to know the process of the terminal which is running in Linux command?

  10. 10

    How to know which script/binary/other running process?

  11. 11

    How do I know which build of Chrome I'm running, 32bit or 64bit? How do I change it

  12. 12

    How do I know which script in running Chrome causes to open a new pop-up?

  13. 13

    How do I know which value is selected

  14. 14

    How do I know who to blame for hackage inconsistencies

  15. 15

    How do I know who to blame for hackage inconsistencies

  16. 16

    how do I know if and why linux is killing my processes?

  17. 17

    How to know which process died when monitoring two processes in while loop

  18. 18

    How do operating systems know which process is calling a function?

  19. 19

    How can I know which type of process of linux will use for these?

  20. 20

    How can I know which process is using swap?

  21. 21

    How can I know the process name which is opening a tcp port?

  22. 22

    How can I know which type of process of linux will use for these?

  23. 23

    How can I know the absolute path of a running process?

  24. 24

    How can I know which tasks are running in the background?

  25. 25

    How do I know which view is associated with which controller?

  26. 26

    How do I run multiple processes with the same process group id?

  27. 27

    How do I find out which processes are preventing unmounting of a device?

  28. 28

    How do I determine which processes are accessing a usb device?

  29. 29

    How do I detect running processes using a library package?

HotTag

Archive