>The Windows method seems to me more secure since I don’t have
>to run the daemon as root.
Daemons are supposed to be trusted processes ...
Only a process which is trusted enough to be allowed access to authentication information would be run by the sys admin as the kind of daemon you are trying to make ....
Allowing access to not so trusted processes is a bigger security hole rather than allowing such access to only a small set of trusted processes .... IMHO ... and this is what makes *nix more secure
Main Topics
Browse All Topics





by: jleviePosted on 2004-03-03 at 05:30:53ID: 10504273
Running the daemon as root, checking the user's credential, and then switching to that user would be the Unix/Linux way if you are using a named pipe. If the connection was via a socket you could have the master process, running as root, accept the connection, validate the user, and then fork off a process that runs as the user, which is quite a bit more secure.