public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Joost Roeleveld <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Gentoo location for squirrelmail attachments
Date: Fri, 09 Dec 2011 17:14:39 +0100	[thread overview]
Message-ID: <2383832.qsbc0XXNJT@eve> (raw)
In-Reply-To: <CAN0CFw39fDRC-EYxP16yv3bQw-ePSCTiWvsVbL9LWeRbuLM_ng@mail.gmail.com>

On Friday, December 09, 2011 07:49:13 AM 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).
> 
> There is a Squirrelmail document recommending that the Squirrelmail
> data and attachments directories are established outside of the web
> server's reach.  /var is given as an example.  They also recommend
> root:apache 0730 for both directories.
> 
> This is a little disturbing because my Squirrelmail data directory was
> created under the webroot as apache:apache 0755 at some point.  Would
> this have been done by Gentoo?  Should I file a bug?
> 
> "Prepare data and attachment directories"
> http://squirrelmail.org/docs/admin/admin-3.html
> 
> - Grant

I think the data-directory is included from upstream and is there to have it 
work when installing it "blindly". Recommendations are not always possible 
(think hosted environments)

--
Joost



  parent reply	other threads:[~2011-12-09 16:17 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
2011-12-09 15:49   ` Grant
2011-12-09 16:09     ` Michael Orlitzky
2011-12-09 16:14     ` Joost Roeleveld [this message]
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=2383832.qsbc0XXNJT@eve \
    --to=joost@antarean.org \
    --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