Skip to content

Change to UNIX file permissions on LORIS install #5057

@johnsaigle

Description

@johnsaigle

I'm exploring creating a Debian package for LORIS and its error-checking tool reports that we are using "non-standard permissions" (according to their standard at least).

These include permissions such as 775 and 664. Typically Linux permissions will be 755 and 644.

From what I can tell, this is because we've proceeded with installation by asking users to create a lorisadmin user and then our install script changes the group to www-data/apache2. This effectively allows the web-server user to do everything that the owner can do. (This is indicated by the fact that the first two permission digits match.)

A better approach to file permissions would be to have lorisadmin as both the owner and the group and add the web user (e.g. apache2) to the lorisadmin group.

This would allow us to use standard 755 and 644 permissions and also eliminate the need to change file permissions on certain directories during the install script.

See also: johnsaigle/loris-debian-package#1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category: CleanupPR or issue introducing/requiring at least one clean-up operationCategory: SecurityPR or issue that aims to improve securityProposalPR or issue suggesting an improvement that can be accepted, rejected or alteredState: Discussion requiredPR or issue that requires the resolution of a discussion with the relevant parties to proceed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions