Skip to content
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

Regarding the issue of writing permissions #701

Open
ArSrNa opened this issue Jul 28, 2023 · 0 comments
Open

Regarding the issue of writing permissions #701

ArSrNa opened this issue Jul 28, 2023 · 0 comments

Comments

@ArSrNa
Copy link

ArSrNa commented Jul 28, 2023

If I run a nodejs code with root permission, including the content of the db.update updates database, nedb will change the corresponding database file uid and gid to root permission (uid and gid is 0). Use fs.statSync() for checking.

This will cause me to use a non root user to execute the nodejs code that db.find() reads nedb, and will prompt ErrorEACCES: permission denied, open mnt/data.json.

This problem can be replicated on the SCF mount to CFS of Tencent Cloud, which is used as the storage database.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant