l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2006 Oct 06 14:38

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] Apache and group permissions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Apache and group permissions

I have a very puzzling (to me) problem.  I'm working with a Mandriva
box running Apache 2.0.54.  It runs as user nobody with its group ID
set to -1 -- i.e. httpd.conf includes:

    User nobody
    Group #-1

I have a PHP web application that wants to read some HylaFAX files
like these:

    # ls -l /var/spool/fax/doneq/
    -rw-rw----  1 uucp faxgroup 827 Oct  6 01:54 q157
    -rw-rw----  1 uucp faxgroup 826 Oct  6 02:26 q158

The faxgroup entry which I added to /etc/groups looks like this:


So my expectation is that my PHP script, which runs as user nobody
along with the rest of Apache, should be able to read these files.
And indeed, if I do this:

    # su - nobody
    $ cat /var/spool/fax/doneq/q157

the viewing is successful.

However, as you have probably guessed, the PHP script cannot read them.
If I "chmod o+r /var/spool/fax/doneq/q157" then it can.  If I exec the
"whoami" command within the script it reports "nobody", as expected.
I did restart Apache after updating /etc/group.

What am I missing?

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!