Re: F11 httpd - non-root "service httpd status" reports wrong

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2009-09-03 at 12:55 -0400, Jason Farrell wrote:
> On Thu, Sep 3, 2009 at 11:21 AM, G.Wolfe
> Woodbury<ggw@xxxxxxxxxxxxxxxxxxx> wrote:
> > F11+updates doing a "service httpd status" reports that the subsystem is
> > locked but httpd dead.  Examination of ps output shows the httpd processes,
> > and pidof reports them.  Prepending sudo to the service command does things
> > right.
> >
> > Not sure why the sudo makes a difference, but it seems to me that it
> > shouldn't require root privleges to simply inquire for the status of
> > something.
> 
> That would be because the pidfile is located in /var/run/httpd vs
> /var/run (as in rhel), and is not readable by nonroot:
> drwx------. 2 root root 4096 2009-09-02 16:04 /var/run/httpd
> 
> Not really a bug since regular users don't need to be querying service
> status, and httpd isn't singled out.

I'd argue it _is_ a bug: if you don't have permission to know something,
the error message should tell you that you don't have permission, rather
than give you incorrect information.

I blunder into this one all too regularly, alas :-)

Cheers
Dave

-- 
fedora-test-list mailing list
fedora-test-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-test-list

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux