Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#537 closed task (fixed)

no permission in TracAccount Manager

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

Description (last modified by coderanger)

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 8 years ago by coderanger

  • Description modified (diff)

Fixing traceback.

comment:2 Changed 8 years ago by mgood

  • Status changed from new to assigned

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 follow-up: Changed 8 years ago by mgood

  • Resolution set to fixed
  • Status changed from assigned to closed

(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 8 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 !

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.