litespeedtech / litespeedtech/openlitespeed

Force Strict Ownership does not work

Open
#281 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.5k
Forks
233
Avg merge
2d 19h
Merged PRs (30d)
5

Description

Steps on how to check it:

  1. Install OLS on Ubuntu 20.04 according to the manual.
  2. WebAdmin > Server Configuration > Security > File Access: Force Strict Ownership = Yes
  3. cd /usr/local/lsws/Example
  4. chown -R www-data:www-data .
  5. cd html
  6. chown root:root ./index.html
  7. `curl -v http://localhost:8088/index.html 2>&1 | grep HTTP'
> GET /index.html HTTP/1.1
< HTTP/1.1 200 OK

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported behavior using the WebAdmin File Access setting, the ownership changes under /usr/local/lsws/Example, and the provided curl command. Trace how Force Strict Ownership is handled for the requested file; done when a root-owned index.html is rejected as expected instead of returning HTTP 200.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux, ubuntu
Domain
security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.