Edgewall Software

Ticket #6212 (closed defect: worksforme)

Opened 13 months ago

Last modified 13 months ago

adding user using AccountManager error

Reported by: vivs Owned by: jonas
Priority: normal Milestone:
Component: general Version:
Severity: normal Keywords:
Cc:

Description

Permissions are ok: temporarily got the digest file in /tmp/.htdigest which has full permissions set.

{{{Python Traceback

Traceback (most recent call last):

File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 406, in dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 237, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.5/site-packages/TracWebAdmin-0.1.2dev_r4240-py2.4.egg/webadmin/web_ui.py", line 109, in process_request

path_info)

File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 48, in process_admin_request

return self._do_users(req)

File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 95, in _do_users

_create_user(req, self.env, check_permissions=False)

File "build/bdist.linux-i686/egg/acct_mgr/web_ui.py", line 53, in _create_user

mgr.set_password(user, password)

File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 98, in set_password

if self.password_store.set_password(user, password):

File "build/bdist.linux-i686/egg/acct_mgr/htfile.py", line 55, in set_password

self.userline(user, password))

File "build/bdist.linux-i686/egg/acct_mgr/htfile.py", line 90, in _update_file

for line in fileinput.input(str(filename), inplace=True):

File "/usr/lib/python2.5/fileinput.py", line 253, in next

line = self.readline()

File "/usr/lib/python2.5/fileinput.py", line 322, in readline

os.rename(self._filename, self._backupfilename)

OSError: [Errno 1] Operation not permitted}}}

Attachments

Change History

Changed 13 months ago by anonymous

  • status changed from new to closed
  • resolution set to worksforme

had to make sure the digest file was owned by the user running the webserver... ie, for me it was the user 'apache' and it wouldnt work otherwise even if full permissions were set.

Changed 13 months ago by eblot

Anyway, as an AccountManagerPlugin issue, please report related errors on trac-hacks.org.

Add/Change #6212 (adding user using AccountManager error)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.