adishegde / media_hub

Decentralized file sharing over LAN
https://adishegde.github.io/media_hub/
MIT License
25 stars 2 forks source link

Check file permissions before starting server #2

Closed adishegde closed 6 years ago

adishegde commented 6 years ago

Currently, read and write permissions are not being checked for any file-based operation. Availability of permissions needs to be checked for the following:

There might not be a need to restrict or change many of the above services. But it needs to be verified nevertheless.

adishegde commented 6 years ago

For metadata database and config file, the method recommended in docs has been used i.e. read and write should be done with error handling rather than calling fs.access.