I am trying to debug some application using Python 2.7.9 and Django 1.10 on FreeBSD.
Generally speaking I have two users with equal rights and permission but when I run django-shell using first user, and execute my script in the shell everything ok.
The problem starts when I try to execute the same script from second user, I get:
File "/usr/local/lib/python2.7/shelve.py", line 223, in __init__
Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
File "/usr/local/lib/python2.7/anydbm.py", line 85, in open
return mod.open(file, flag, mode)
error: (13, 'Permission denied')
I set all directories in usr/local to has - chmod 777. First and second users are in the same groups and from my point of view has the same permissions.