英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论