On Tue, 22 May 2001, Phil Mendelsohn wrote:

> Anyone got a better suggestion than "just run it as root?"  (Maybe
> that's not a bad idea anyway.)

in general, I don't like daemons running as root.  Now granted, your
driver is not nearly as complex as sendmail but depending on how it polls
CPU/mem usage it may be possible to throw some funky code into a certain
register and the driver interprets that as a command and bingo, any user
on the system has a neat way of getting root to run scripts.

Ok, it's a REALLY long shot.  I don't see how your driver could possibly
act that way, but it's something to consider when running a daemon.  I
like the idea of setting up a user (like meter-daemon or something), give
it appropriate permissions to /dev/ttyS0, and run the daemon setuid to
meter-daemon.

-Brian