user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* Umask and xapian db file permissions
@ 2018-05-24 17:09 Konstantin Ryabitsev
  2018-05-30  2:54 ` [PATCH] respect umask if core.sharedRepository is not set Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Konstantin Ryabitsev @ 2018-05-24 17:09 UTC (permalink / raw)
  To: meta


[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-30 17:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-24 17:09 Umask and xapian db file permissions Konstantin Ryabitsev
2018-05-30  2:54 ` [PATCH] respect umask if core.sharedRepository is not set Eric Wong
2018-05-30 17:57   ` Konstantin Ryabitsev

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).