Open Bug 511340 Opened 15 years ago Updated 8 years ago

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

Categories

(Bugzilla :: Installation & Upgrading, defect)

defect
Not set
minor

Tracking

()

People

(Reporter: mkanat, Unassigned)

References

Details

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.
(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.
(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
Severity: normal → minor
Target Milestone: Bugzilla 3.6 → ---
See Also: → 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: → 1284336
You need to log in before you can comment on or make changes to this bug.