-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Aptly disrespects umask #1200
Comments
I don't know what you mean by "obeying" My bookworm
I still see your use-case, maybe the relevant default permission could be exposed for you to modify. You might still be better off just using a dedicated |
Yes, sorry, perhaps I worded it poorly; I’m quite well versed with how umask works, so I know that, from a technical perspective, a program is perfectly within its rights to choose whatever permission bits it wants. It’s just that, as a convention, programs usually use 0666 or 0777 unless there’s a good reason to do otherwise. Text editor? 0666. |
As for using |
Aptly creates files and directories in
db
andpool
which do not respect my umask.Detailed Description
The
db
directory has permission 0755. Since my umask is 0002, it should have 0775.Context
If Aptly obeyed its umask, I could use umask 0002 and an SGID directory to allow all users in a group to collaborate on maintaining a single repository.
Possible Implementation
Pass 0777 to the directory creation syscall and 0666 to the file creation syscall, like most software does, rather than, I assume, 0755 and 0644.
Your Environment
AMD64 Ubuntu Jammy, both using the packaged 1.4.0 and also the 1.5.0 from the GitHub release.
The text was updated successfully, but these errors were encountered: