>>>>> "Ken" == Ken Jones <[EMAIL PROTECTED]> writes:

    Ken> Besides it looking like the chown happens before the install
    Ken> of qmailadmin binary, what is the problem?  What doesn't
    Ken> work?

The binary will have default ownership and permissions (at least on my
system)

[354]# ls -l qmailadmin
-rwxr-xr-x    1 root     root       379879 Nov 28 01:46 qmailadmin
[355]# chown vpopmail qmailadmin
[356]# chgrp vchkpw qmailadmin
[357]# chmod u+s,g+s qmailadmin
[358]# ls -l qmailadmin
-rwsr-sr-x    1 vpopmail vchkpw     379879 Nov 28 01:46 qmailadmin
[359]# install -c -s qmailadmin /home/httpd/cgi-bin/qmailadmin
[360]# ls -l qmailadmin /home/httpd/cgi-bin/qmailadmin 
-rwxr-xr-x    1 root     root       168148 Nov 28 10:10 /home/httpd/cgi-bin/qmailadmin
-rwsr-sr-x    1 vpopmail vchkpw     379879 Nov 28 01:46 qmailadmin
[361]# 


    Ken> On Wed, 2001-11-28 at 01:02, Brent B.Powers wrote:
    >>  I don't know why I seem to be the only one crying about these
    >> odd problems. Here's the output from a 'make install-strip':
    >> 
    >> # make install-strip make AM_INSTALL_PROGRAM_FLAGS=-s install
    >> make[1]: Entering directory `/usr/src/qmail/qmailadmin-1.0'
    >> make[2]: Entering directory `/usr/src/qmail/qmailadmin-1.0'
    >> make[3]: Entering directory `/usr/src/qmail/qmailadmin-1.0'
    >> /bin/sh ./mkinstalldirs /home/httpd/cgi-bin chown vpopmail
    >> /home/httpd/cgi-bin/qmailadmin chgrp vchkpw
    >> /home/httpd/cgi-bin/qmailadmin chmod u+s,g+s
    >> /home/httpd/cgi-bin/qmailadmin /bin/sh ./mkinstalldirs
    >> /usr/local/share/qmailadmin/ /usr/bin/install -c -s qmailadmin
    >> /home/httpd/cgi-bin/qmailadmin /bin/sh ./mkinstalldirs
    >> /usr/local/share/qmailadmin//html cp -R html/*
    >> /usr/local/share/qmailadmin//html /bin/sh ./mkinstalldirs
    >> /home/httpd/html/images /bin/sh ./mkinstalldirs
    >> /home/httpd/html/images/qmailadmin cp -R images/*
    >> /home/httpd/html/images/qmailadmin make[3]: Leaving directory
    >> `/usr/src/qmail/qmailadmin-1.0' make[2]: Leaving directory
    >> `/usr/src/qmail/qmailadmin-1.0' make[1]: Leaving directory
    >> `/usr/src/qmail/qmailadmin-1.0'
    >> 
    >> 
    >> So, what's the problem? the chown, chgrp and chown is done
    >> _before_ the install.
    >> 
    >> I've no idea how standard install is, but how about replacing:
    >> 
    >> chown vpopmail /home/httpd/cgi-bin/qmailadmin chgrp vchkpw
    >> /home/httpd/cgi-bin/qmailadmin chmod u+s,g+s
    >> /home/httpd/cgi-bin/qmailadmin /bin/sh ./mkinstalldirs
    >> /usr/local/share/qmailadmin/ /usr/bin/install -c -s qmailadmin
    >> /home/httpd/cgi-bin/qmailadmin
    >> 
    >> with:
    >> 
    >> /bin/sh ./mkinstalldirs /usr/local/share/qmailadmin/
    >> /usr/bin/install -g vchkpw -o vpopmail -m 6755 -c -s qmailadmin
    >> /home/httpd/cgi-bin/qmailadmin
    >> 
    >> I think that will do it. Works on linux and freebsd....
    >> 

Reply via email to