LSB start_daemon question
I am setting up a license server running CentOS 5.8. One of the factory init scripts calls lsb start_daemon, but they had no idea that start_daemon includes a -u switch to run as non-root. This works, but I find I now have two processes running non-root and two as root. I am trying to determine if I have actually achieved better security here or not. Without the switch I would see 3 processes instead of 4. Obviously the runuser would not be there.
Code:
[root@xxx init.d]# ps auxww | grep rlm |
those are all child processes of the first entry in your ps grep command.
you can see that with ps -ef | grep rlm the service rlm you can see is actually launched as the user you specified. so security wise if that service is not running as root. Which is what you want. |
Code:
[tsadmin@xxx ~]$ ps -ef | grep rlm Thanks |
you got it you're good to go. No need to worry about the long line of pre processes commands it took to get there thats all part of the start_daemon script which is a wrapper... that may wrap itself multiple times depending on how you tell it to call a daemon.
|
All times are GMT -5. The time now is 02:16 PM. |