Menu

#2 rpm install may pickup incorrect httpd user name

open
install (2)
5
2003-03-28
2003-03-24
Joe Zacky
No

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.

Discussion

  • Joe Zacky

    Joe Zacky - 2003-03-28
    • labels: --> install
    • assigned_to: nobody --> jzacky
    • summary: rpm may pickup incorrect httpd user name --> rpm install may pickup incorrect httpd user name
     
  • Eduardo Diaz

    Eduardo Diaz - 2003-10-17

    Logged In: YES
    user_id=36388

    In debian woodie 3.0 happends too

     
  • Nobody/Anonymous

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.