Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#537 closed task (fixed)

no permission in TracAccount Manager

Reported by: anonymous Owned by: Matt Good
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: felipe.diazfrutos@… Trac Release: 0.9

Description (last modified by Noah Kantrowitz)

I have configurated the module TracAccountManager but when I try create a new account the followed error appear

[Errno 13] Permission denied

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/cgi_frontend.py", line 130, in run
    dispatch_request(req.path_info, req, env)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/TracAccountManager-0.1.2.egg/acct_mgr/web_ui.py", line 51, in process_request
  File "/usr/lib/python2.4/site-packages/TracAccountManager-0.1.2.egg/acct_mgr/web_ui.py", line 67, in _do_change_password
  File "/usr/lib/python2.4/site-packages/TracAccountManager-0.1.2.egg/acct_mgr/api.py", line 88, in set_password
  File "/usr/lib/python2.4/site-packages/TracAccountManager-0.1.2.egg/acct_mgr/htfile.py", line 50, in set_password
  File "/usr/lib/python2.4/site-packages/TracAccountManager-0.1.2.egg/acct_mgr/htfile.py", line 77, in _update_file
  File "/usr/lib/python2.4/fileinput.py", line 231, in next
    line = self.readline()
  File "/usr/lib/python2.4/fileinput.py", line 300, in readline
    os.rename(self._filename, self._backupfilename)
OSError: [Errno 13] Permission denied

Attachments (0)

Change History (4)

comment:1 Changed 11 years ago by Noah Kantrowitz

Description: modified (diff)

Fixing traceback.

comment:2 Changed 11 years ago by Matt Good

Status: newassigned

The Trac process needs write permission to the directory containing your htpasswd or htdigest file in order to back it up while it's being updated. I'll add a better error message for this.

comment:3 Changed 11 years ago by Matt Good

Resolution: fixed
Status: assignedclosed

(In [1063]) add a friendly error message when the Trac user is missing permissions to update the password file (fixes #537)

comment:4 in reply to:  3 Changed 11 years ago by anonymous

Replying to mgood:

(In [1063]) add a friendly error message when the Trac user is missing permissions to update the password file (fixes #537)

THANKS !

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matt Good.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.