On Tuesday, November 30, 2010 19:45:11 Joe Nall wrote:
> On Nov 30, 2010, at 4:01 PM, Tom Lane wrote:
>> That comment suggests you don't even understand the reason why those
>> subdirectories exist.  It's this: the daemons do not, and should not,
>> run with the root privileges needed to create things directly in
>> /var/run.  The point of a subdirectory is to be owned by the
>> lower-privilege account under which the particular daemon is running.
>> If the subdir has to be remade at runtime, that has to be done by the
>> root-privilege initscript, because /var/run is only writable by root.
>
> I was nodding my head in agreement reading this paragraph, and then I
> looked at my development box. Only avahi-daemon and hald follow this
> pattern in my /var/run (which I'm sure is not a complete sample).

Well, the distinct types are there.

Plus, my /var/run has directories owned by:

    avahi
    haldaemon
    mysql
    named

Also, the group owners are different from root on:

    cups
    screen

I'm still nodding my head in agreement.  :-)

-- 
Garry Williams
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to