Skip to content

如何设置创建的 log 文件的权限?默认是 0644,如何改为 0600 或 0700? #102

Closed
@iredmail

Description

使用最新版本的 slog 库,但没找到如何指定创建的 log 文件的权限。
默认是 0644,前面的 6 和 4 都还好,但最后一个 4 导致除了 owner/group 外的人也可以查看文件内容,这个不是很理想。
如何改为 0600 或 0700?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions