user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
From: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
To: meta@public-inbox.org
Subject: Umask and xapian db file permissions
Date: Thu, 24 May 2018 13:09:06 -0400	[thread overview]
Message-ID: <38873789-ab42-65a1-20c9-12c30b171f4f@linuxfoundation.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1645 bytes --]

Hello:

For some reason, when public-inbox-mda reindexes the repository
past-delivery, it creates some files as 0660, even though umask is
specifically set to 0002:

$ ls -al public-inbox/xapian15/
total 21932
drwxrwxr-x. 2 archiver archiver    4096 May 24 16:52 .
drwxrwxr-x. 3 archiver archiver      42 May 24 16:52 ..
-rw-rw-r--. 1 archiver archiver       0 May 24 16:52 flintlock
-rw-rw-r--. 1 archiver archiver      28 May 24 15:56 iamchert
-rw-rw-r--. 1 archiver archiver 1190912 May 24 16:52 over.sqlite3
-rw-rw-r--. 1 archiver archiver       0 May 24 16:52 over.sqlite3-journal
-rw-rw----. 1 archiver archiver     150 May 24 16:48 position.baseA
-rw-rw----. 1 archiver archiver     150 May 24 16:52 position.baseB
-rw-rw-r--. 1 archiver archiver 8626176 May 24 16:52 position.DB
-rw-rw----. 1 archiver archiver     149 May 24 16:48 postlist.baseA
-rw-rw----. 1 archiver archiver     149 May 24 16:52 postlist.baseB
-rw-rw-r--. 1 archiver archiver 8642560 May 24 16:52 postlist.DB
-rw-rw----. 1 archiver archiver      20 May 24 16:48 record.baseA
-rw-rw----. 1 archiver archiver      20 May 24 16:52 record.baseB
-rw-rw-r--. 1 archiver archiver  368640 May 24 16:52 record.DB
-rw-rw----. 1 archiver archiver      71 May 24 16:48 termlist.baseA
-rw-rw----. 1 archiver archiver      71 May 24 16:52 termlist.baseB
-rw-rw-r--. 1 archiver archiver 3579904 May 24 16:52 termlist.DB

Since the daemon is running as user "publicinbox", this causes the web
interface to break due to not being able to access the index.

Best,
-- 
Konstantin Ryabitsev
Director, IT Infrastructure Security
The Linux Foundation


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

             reply	other threads:[~2018-05-24 17:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-24 17:09 Konstantin Ryabitsev [this message]
2018-05-30  2:54 ` [PATCH] respect umask if core.sharedRepository is not set Eric Wong
2018-05-30 17:57   ` Konstantin Ryabitsev

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

  List information: https://public-inbox.org/README

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

  git send-email \
    --in-reply-to=38873789-ab42-65a1-20c9-12c30b171f4f@linuxfoundation.org \
    --to=konstantin@linuxfoundation.org \
    --cc=meta@public-inbox.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).