Results 1 to 8 of 8
I apologize if this has been asked before but a search didn't come up with anything related to my question. I was reading a book on Linux Security. It mentioned ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-07-2007 #1
Processes that should belong to Root
I apologize if this has been asked before but a search didn't come up with anything related to my question.
I was reading a book on Linux Security. It mentioned it wasn't especially safe to have processes running as root unless necessary. My question is, what processes should be run as root? Also, how would I go about changing a processes owner?
- 09-07-2007 #2
In what context was this mentioned because some processes can only be run by root.
- 09-08-2007 #3
I can't find the exact place I saw it, but I remember it saying that running processes with root access made obtaining root access that much easier. I want to find out which processes *need* to be run as root and which can be ran in some other, more secure, fashion.
- 09-08-2007 #4
Most distros are already preconfigured in such a way that processes that do not need to be run as root, are run by some other user (enter "ps aux" in the CLI and take a look). Its usually server apps and daemons that are run using a dedicated system user who is not root.
- 09-08-2007 #5
I was just wondering because I had a look at my running processes and 56 of them belonged to root. Is that a normal number?
- 09-08-2007 #6
I currently have 45 processes that belong to root, so its not unusual to have a lot of processes being owned by root. Like I said apart from servers and other daemons, many system processes are started or run by root.
- 09-08-2007 #7
- Join Date
- Nov 2004
There's quite a few that can't be run by a non root user, but many things can and should be. Look up info on specific programs (identifiied by the process name) to see if it can be and how to go about doing it.
- 09-09-2007 #8
Ok, its good to know that I am not putting my machine at a huge risk by having a large number of processes running as root and I'll have a look at the individual processes as valan suggested.