On Wed, 17 Oct 2001, Aaron Konstam wrote:

> Can a process not running as root cause a .pid file to be created
> in /var/run or one of its  its subdirectories?
> It seems to me that it can't but
> it also seems to me that running: service innd start
> is supposed to have /etc/rc.news running as user news to create
> one.
>
> I am not asking what I feel is an inn question which is off topic
> for this list but trying to clarify in my mind how .pid files are
> created.
>
An easy way to check this is to look at the permissions of /var/run, and
see who can write to the directory.  (It is limmited to root.)

Now, as to your real question.  When you run "service innd start" as
root, you are running the script /etc/rc.d/init.d/innd as root, and the
so root is creating the .pid file, even though a it is being created
with a different group and user ID.

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to