log: inherit new directory permissions from parent #250

Closed
opened 2026-10-05 04:07:40 +02:00 by adam · 0 comments
Owner

While I was trying to share the log directory located in /var/lib/znc/moddata/log via nginx, I encountered an issue that new directories inside it are always created with 700 permission. This causes a problem when the web server and znc are run as different users. This makes it impossible for nginx to access anything in the log directory. What would be a good behaviour is, I think, when creating a new directory inside a log directory, to inherit the permissions of a parent (module) directory. Say, if I do chmod 755 /var/lib/znc/moddata/log, all directories created inside it by znc would have same permissions.

While I was trying to share the log directory located in /var/lib/znc/moddata/log via nginx, I encountered an issue that new directories inside it are always created with 700 permission. This causes a problem when the web server and znc are run as different users. This makes it impossible for nginx to access anything in the log directory. What would be a good behaviour is, I think, when creating a new directory inside a log directory, to inherit the permissions of a parent (module) directory. Say, if I do chmod 755 /var/lib/znc/moddata/log, all directories created inside it by znc would have same permissions. <!-- github-sync-id:16539189 -->
adam closed this issue 2026-10-05 04:07:40 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#250