From ed51875bac3a29648ad05b388c8bbf3bb3b886fe Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 25 Jul 2015 19:58:12 +0300 Subject: [PATCH] Set umask --- xsetbg_db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xsetbg_db.py b/xsetbg_db.py index dc23254..71055c0 100755 --- a/xsetbg_db.py +++ b/xsetbg_db.py @@ -14,6 +14,9 @@ from sqlobject import SQLObject, connectionForURI, sqlhub, \ UnicodeCol, IntCol, BoolCol, DatabaseIndex, dberrors from xsetbg_conf import xsetbg_conf +# octal; -rw-------; make the database file(s) readable only by the user +os.umask(0066) + class XSetBg(SQLObject): full_name = UnicodeCol(alternateID=True) -- 2.39.2