Modify

Opened 19 years ago

Closed 19 years ago

Last modified 11 years ago

#367 closed defect (worksforme)

Permission denied FC5 Apache 2.2 htdigest

Reported by: tcasada Owned by: Matt Good
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.9

Description (last modified by Ryan J Ollos)

I have the owner on my htdigest file set to apache group root and have even chmod 777 on it. Still when trying to create a new user I get:

[Errno 13] Permission denied

Here is the Python traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py", line 206, in handler
    dispatch_request(mpr.path_info, mpr, 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 "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 117, in process_request
  File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 138, in _do_create
  File "build/bdist.linux-x86_64/egg/acct_mgr/api.py", line 88, in set_password
  File "build/bdist.linux-x86_64/egg/acct_mgr/htfile.py", line 50, in set_password
  File "build/bdist.linux-x86_64/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 (2)

comment:1 Changed 19 years ago by Gunnar Wagenknecht <gunnar@…>

Resolution: worksforme
Status: newclosed

Fedora Core comes with SELinux enabled by default. You need to explicitly allow file access to Apache.

 $ chcon -t httpd_sys_content_t /path/to/htdigest

comment:2 Changed 11 years ago by Ryan J Ollos

Description: modified (diff)

Modify Ticket

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

Add Comment


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

 
Note: See TracTickets for help on using tickets.