如何修改DolphinDB的“saveText”保存文件的默认权限?

huangapple go评论58阅读模式
英文:

How to modify the default permissions for files saved by DolphinDB "saveText"?

问题

只有通过 saveText 保存的文件,具体的用户才具有写入权限,组内其他成员不允许对文件进行写入。如何修改配置以赋予组写入权限?

英文:

For the files saved by saveText, only the specific user has the write access, other members of the group are not allowed to write to the file. How to modify the configuration to give the write permissions to the group?

答案1

得分: 1

默认情况下,写权限与启动DolphinDB进程的用户权限匹配。同一组的其他成员由于权限掩码而无法向保存的文件写入。要默认授予组权限,您需要通过设置umask 0002来修改权限掩码。

如果使用systemd启动DolphinDB,可以在相关的系统配置文件中添加配置选项:

[Service]
UMask=0002

英文:

By default, the write permissions match the permissions of the user who initiates the DolphinDB process. The other members of the same group are not allowed to write to the saved file due to the permission mask. To grant group permissions by default, you need to modify the permission mask by setting umask 0002.

If starting DolphinDB with systemd, you can add a configuration option to the relevant system configuration file:

[Service]
UMask=0002

huangapple
  • 本文由 发表于 2023年6月15日 13:46:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/76479441.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定