Modify ↓
Ticket #1134 (closed defect: fixed)
Wrong permissions on intermediary directories leading to a file
Reported by: | https://www.google.com/accounts/o8/id?id=AItOawlmQQXfSG8MiJbq8L5pwwSZpPJqtMfKtG8 | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.3.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | umask | Cc: |
Description
Seen on bcfg2-1.3.0pre[12]:
If a <Path/> entry defines a file in a directory path that does not exist yet, bcfg2 creates the directory path leading to the file, but with inadequate permissions. For instance, for: <Path name="/foo/bar/baz"/> directories /foo and /foo/bar will be created with owner:permissions root:root:0644. On some systems I've seen directories created with permissions 0744 which makes me think this may be related to umask inheritance.
This is similar, but not quite the same, as ticket 1125
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
Fixed in https://github.com/Bcfg2/bcfg2/commit/10eb7f52b799e6b36deeebb9b78f5d0734d9f05b