Modify

Opened 8 years ago

Closed 8 years ago

Last modified 3 months ago

#367 closed defect (worksforme)

Permission denied FC5 Apache 2.2 htdigest

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

Description (last modified by rjollos)

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 8 years ago by Gunnar Wagenknecht <gunnar@…>

  • Resolution set to worksforme
  • Status changed from new to closed

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 3 months ago by rjollos

  • Description modified (diff)

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.