Roundup Tracker - Issues

Issue 550442

classification
db and files directory group writeable ?
Type: rfe Severity: normal
Components: None Versions:
process
Status: closed fixed
:
: :
Priority: normal :

Created on 2002-04-30 00:19 by anonymous, last changed 2002-04-30 00:19 by anonymous.

Messages
msg3016 Author: [hidden] (anonymous) Date: 2002-04-30 00:19
the instance_config.DATABASE and files directories 
are not group writeable, that caused some problems
for me (mail gw and web interface).

maybe you can incorporate some stuff like this
in dbinit.py (init function).
(not tested and certainly not thread save) 

if not os.path.isdir(dbdir):
    # only db and files directories should be group
    # writeable

    base=os.path.split(instance_config.DATABASE)[0]
    if not os.path.isdir(base)
        os.makedirs(base)
    try:
        oldMask=os.umask(0002)
        os.makedirs(dbdir)
    finally:
        os.umask(oldMask)





greetings 

   uwe
    
History
Date User Action Args
2002-04-30 00:19:08anonymouscreate