diff options
author | Peter Palfrader <peter@palfrader.org> | 2002-08-12 03:36:45 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2002-08-12 03:36:45 +0000 |
commit | eadd6153fd8a69edc3323eb94b20a9038c8ac704 (patch) | |
tree | e0762126f7c12641b18bd6060509e1d8428864d6 | |
parent | 5b7ef796565747adb5113ec08d862c31631c1255 (diff) |
Stricter permissions for most newly created directories (go-rwx)
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | debian/echolot.postinst.in | 2 | ||||
-rwxr-xr-x | pingd | 12 |
3 files changed, 8 insertions, 7 deletions
@@ -5,6 +5,7 @@ Changes in version * Config option mailindir was renamed to mailin. You now can also point it to a mbox format mailbox. * Have --quiet. + * Stricter permissions for most newly created directories (go-rwx). Changes in version 2.0beta25 - 2002-08-10 * Produce echolot.html, an index file for echolot results. diff --git a/debian/echolot.postinst.in b/debian/echolot.postinst.in index 7f33347..2b70082 100755 --- a/debian/echolot.postinst.in +++ b/debian/echolot.postinst.in @@ -18,7 +18,7 @@ chown echolot.adm /var/log/echolot/echolot.log chmod 640 /var/log/echolot/echolot.log # and /var/lib/echolot if ( ! dpkg-statoverride --list /var/lib/echolot > /dev/null ); then - dpkg-statoverride --update --add root echolot 02770 /var/lib/echolot + dpkg-statoverride --update --add root echolot 02775 /var/lib/echolot fi # and /var/run/echolot if ( ! dpkg-statoverride --list /var/run/echolot > /dev/null ); then @@ -3,7 +3,7 @@ $| = 1; # (c) 2002 Peter Palfrader <peter@palfrader.org> -# $Id: pingd,v 1.61 2002/08/12 03:28:06 weasel Exp $ +# $Id: pingd,v 1.62 2002/08/12 03:35:58 weasel Exp $ # =pod @@ -489,11 +489,6 @@ sub make_dirs() { for my $dir ( Echolot::Config::get()->{'resultdir'}, Echolot::Config::get()->{'thesaurusdir'}, - Echolot::Config::get()->{'private_resultdir'}, - Echolot::Config::get()->{'gnupghome'}, - Echolot::Config::get()->{'mixhome'}, - Echolot::Config::get()->{'tmpdir'}, - Echolot::Config::get()->{'storage'}->{'File'}->{'basedir'} ) { if ( ! -d $dir ) { mkdir ($dir, 0755) or @@ -501,6 +496,11 @@ sub make_dirs() { }; }; my @dirs = ( + Echolot::Config::get()->{'private_resultdir'}, + Echolot::Config::get()->{'gnupghome'}, + Echolot::Config::get()->{'mixhome'}, + Echolot::Config::get()->{'tmpdir'}, + Echolot::Config::get()->{'storage'}->{'File'}->{'basedir'}, Echolot::Config::get()->{'mailerrordir'}, Echolot::Config::get()->{'mailerrordir'}.'/cur', Echolot::Config::get()->{'mailerrordir'}.'/tmp', |