checksetup cannot chmod/chown files created by the webserver if you are not root

NEW
Unassigned

Status

()

Bugzilla
Installation & Upgrading
--
minor
9 years ago
2 years ago

People

(Reporter: Max Kanat-Alexander, Unassigned)

Tracking

Details

(Reporter)

Description

9 years ago
Now that I've fixed bug 511337, it's become apparent that checksetup.pl cannot chmod/chown files if they are owned by the webserver. We currently tell it to do so, however. (For example, for bugzilla-update, mailer.testfile, etc.)

Either we have to stop telling it to chmod/chown them, or we have to figure out a way to fix the ownership of these files (perhaps have checksetup create empty ones).

Even tricker are the webdot files, which are *always* created by the webserver.

Comment 1

9 years ago
(In reply to comment #0)
> Now that I've fixed bug 511337, it's become apparent that checksetup.pl cannot
> chmod/chown files if they are owned by the webserver.

How can checksetup.pl be unable to chmod/chown these files? We run it as root.
(Reporter)

Comment 2

9 years ago
(In reply to comment #1)
> How can checksetup.pl be unable to chmod/chown these files? We run it as root.

  Not all people run it as root. In fact, many installations run it as some non-root user who owns the files and happens to be in the apache group. (For example: most landfill installations.)
Summary: checksetup cannot chmod/chown files created by the webserver → checksetup cannot chmod/chown files created by the webserver if you are not root
(Reporter)

Updated

8 years ago
Severity: normal → minor
Target Milestone: Bugzilla 3.6 → ---

Updated

4 years ago
See Also: → bug 714241
Why is it bad if checksetup.pl attempts to chmod/chown the files and fails? Do error messages appear? Perhaps we just need to fail silently if we can see they are already owned by the web server user?

Gerv
See Also: → bug 1284336
You need to log in before you can comment on or make changes to this bug.