Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct incorrect "archivedir" filesystem permissions #342

Merged
merged 3 commits into from
Jul 6, 2024

Conversation

Allan-N
Copy link
Collaborator

@Allan-N Allan-N commented Jul 3, 2024

Newly created directories should be created with the eXecute bit set (e.g. 0700). Found and fixed a few calls to mkdir() that were setting mode 0600 (incorrect) instead of the mode 0700 (expected).

Also corrected two log messages that were correctly/fully reporting the specific filenames that could not be opened.

Newly created directories should be created with the eXecute bit set (e.g. 0700).
Found and fixed a few calls to mkdir() that were setting mode 0600 (incorrect)
instead of the mode 0700 (expected).

Also corrected two log messages that were correctly/fully reporting the specific
filenames that could not be openned.
@Allan-N Allan-N requested a review from InterLinked1 July 3, 2024 00:41
@Allan-N Allan-N self-assigned this Jul 3, 2024
@Allan-N Allan-N linked an issue Jul 3, 2024 that may be closed by this pull request
The idea here is that we keep the "archivedir" directory permissions at 700 but
create the subdirecties as 755 and the [leaf] files as 644.  No more errors due
to the incorrect directory permissions.  Access to the archive starts off locked
down but if the node owner opens the "archivedir" permissions then the rest of
the content becomes available without having to perform extra chmod's.
Scripts processing the files added to the "archivedir" directory may actually
want to remove files that have been processed.  Extend the "group" privs to allow
removing files.

Note: ownership of the "archivedir" dirs/files will be "asterisk:asterisk"
@jxmx jxmx mentioned this pull request Jul 6, 2024
6 tasks
@jxmx jxmx self-requested a review July 6, 2024 14:16
@jxmx jxmx added this to the 3.0.1 milestone Jul 6, 2024
@jxmx jxmx merged commit dd4ff81 into master Jul 6, 2024
1 check passed
@jxmx jxmx deleted the 341-archivedir-creation-and-settings branch July 6, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

archivedir creation and settings
2 participants