Find the answer to your Linux question:
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.
  1. #1
    Just Joined! Zener`'s Avatar
    Join Date
    Sep 2007
    Posts
    6

    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?

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    In what context was this mentioned because some processes can only be run by root.

  3. #3
    Just Joined! Zener`'s Avatar
    Join Date
    Sep 2007
    Posts
    6
    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.

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    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.

  5. #5
    Just Joined! Zener`'s Avatar
    Join Date
    Sep 2007
    Posts
    6
    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?

  6. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    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.

  7. #7
    Linux Engineer
    Join Date
    Nov 2004
    Location
    home
    Posts
    796
    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.

  8. #8
    Just Joined! Zener`'s Avatar
    Join Date
    Sep 2007
    Posts
    6
    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.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •