Re: General file location questions.

1999-11-03 Thread Dave Sill

"Denis Voitenko" <[EMAIL PROTECTED]> wrote:

>> Because most of the files under the qmail tree are host-specific.
>> Obviously, the queue is, but even the binaries are since they have
>> UID's built in.
>
>What does that have to do with the location of files? I run Squid proxy as a
>user squid that is a member of squid group. And it is located in
>/usr/local/squid

The general convention these days is that host-specific files go under
/var.

-Dave



Re: General file location questions.

1999-11-02 Thread Markus Stumpf

On Tue, Nov 02, 1999 at 11:12:00PM -0500, Denis Voitenko wrote:
> > Because most of the files under the qmail tree are host-specific.
> > Obviously, the queue is, but even the binaries are since they have
> > UID's built in.
> 
> What does that have to do with the location of files? I run Squid proxy as a
> user squid that is a member of squid group. And it is located in
> /usr/local/squid

Files in /usr/local are often distributed via NFS to hosts running the
same OS. The qmail/queue structure ist not usable via NFS and has to
be local to each machine running qmail. However this can be accomplished
by e.g. with symbolic links.
Also each machine trying to make use of the NFS distributed qmail binaries
has to have all the qmail password entries with exact the same UIDs and
the NFS mount has to allow execution of setuid programs.
To avoid this problems for unexperienced admins DJB probably decided
the best place for qmail is in /var.

\Maex

-- 
SpaceNet GmbH |   http://www.Space.Net/   | Yeah, yo mama dresses
Research & Development| mailto:[EMAIL PROTECTED] | you funny and you need
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0| a mouse to delete files
D-80807 Muenchen  |  Fax: +49 (89) 32356-299  |



Re: General file location questions.

1999-11-02 Thread Denis Voitenko

> Because most of the files under the qmail tree are host-specific.
> Obviously, the queue is, but even the binaries are since they have
> UID's built in.

What does that have to do with the location of files? I run Squid proxy as a
user squid that is a member of squid group. And it is located in
/usr/local/squid



Re: General file location questions.

1999-11-02 Thread Dave Sill

"Denis Voitenko" <[EMAIL PROTECTED]> wrote:

>I have been using qmail for quite a while and installed it on a number of
>servers. I never understood why does qmail use /var/qmail as it's deafault
>directory? What is wrong with /usr/local/qmail ? I know it is fixable and I
>could do that, but is there a reason for such structure?

Because most of the files under the qmail tree are host-specific.
Obviously, the queue is, but even the binaries are since they have
UID's built in.

If it offends your sensibilities to have non-host-specific files under 
/var, you can:

mkdir -p /var/qmail /usr/local/doc /usr/local/etc/qmail/control \
  /usr/local/bin/qmail
ln -s /usr/local/man /var/qmail
ln -s /usr/local/doc /var/qmail
ln -s /usr/local/etc/qmail/control /var/qmail/control
ln -s /usr/local/bin/qmail /var/qmail/bin

Or something like that, before you install qmail.

-Dave