public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Orlitzky <michael@orlitzky.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Gentoo location for squirrelmail attachments
Date: Thu, 08 Dec 2011 21:49:23 -0500	[thread overview]
Message-ID: <4EE17733.6070601@orlitzky.com> (raw)
In-Reply-To: <CAN0CFw0r9Gtg9ACVBKV8tW8pmtiwvdfmkRno7xQ-djh4AKNXOg@mail.gmail.com>

On 12/08/2011 02:17 PM, Grant wrote:
> I ran squirrelmail/configtest.php and realized I don't have an
> attachment directory set up for Squirrelmail:
>
> ERROR: Attachment dir (/var/local/squirrelmail/attach/) does not exist!
>
> I don't even have a /var/local/.  Would a good Gentoo'er create the
> directory in that location?

If a website needs to write files, let it do so under its own directory 
hierarchy. All of our PHP sites have something equivalent to the 
following in their apache vhost configs:

   php_admin_value open_basedir /var/www/example.com/www/
   php_admin_value upload_tmp_dir /var/www/example.com/www/tmp
   php_admin_value session.save_path /var/www/example.com/www/tmp

That way, if www.example.com is compromised, the rest of the machine is 
still safe (barring PHP bugs).



  parent reply	other threads:[~2011-12-09  2:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-08 19:17 [gentoo-user] Gentoo location for squirrelmail attachments Grant
2011-12-08 19:37 ` Stroller
2011-12-09  6:51   ` J. Roeleveld
2011-12-09 15:51     ` Grant
2011-12-09 16:08       ` Joost Roeleveld
2011-12-09  2:49 ` Michael Orlitzky [this message]
2011-12-09 15:49   ` Grant
2011-12-09 16:09     ` Michael Orlitzky
2011-12-09 16:14     ` Joost Roeleveld
2011-12-09 18:24       ` Grant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EE17733.6070601@orlitzky.com \
    --to=michael@orlitzky.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox