The user name of the httpd process is discovered when
the rpm is built, instead of when it's installed. So if
the httpd process runs under a different user name on
the target system, the directory permissions will not
be correct.
Also, if the httpd process isn't running when the rpm
is built, rpmbuild will get an error because of a blank
user name.
Logged In: YES
user_id=36388
In debian woodie 3.0 happends too
Logged In: NO
Since the distros themselves cannot agree on a standard
httpd user name, you may have to start distributing
different RPMs per distro, each one with the correct username.
I'm really uncertain as to the feasability of trying to
figure out that kind of info from %post magic, especially when
- the httpd binary may not be running, as you say, on install
- the location of the httpd binary is not guaranteed in a
distro-agnostic package
You may be able to get it from the group setting on the
suexec binary, which itself can be found from 'httpd -V',
but then you have to make sure that httpd *has* a suexec
installed, that it's in root's path like httpd is, and it's
a long list of 'IF's there.
- bishop@platypus.bc.ca