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

Permissions #24

Closed
defilor opened this issue Sep 30, 2021 · 1 comment
Closed

Permissions #24

defilor opened this issue Sep 30, 2021 · 1 comment

Comments

@defilor
Copy link

defilor commented Sep 30, 2021

Hi, I'm having some issues with permissions, first of all either the storage or assets folder that is created had the wrong permissions set which prevented the service from starting, it was assigned to root:photoprism iirc. Secondly, and that is giving me more trouble right now, I can't upload any images as it seems the database is read-only. Not sure how I can solve that manually, would need detailed instructions for that as I know nothing about databases.

Also can't seem to set the storage, assets and import folder permanently, have to resort to setenv for this. Is there a solution?

Thanks for all the effort!

@huo-ju
Copy link
Owner

huo-ju commented Oct 5, 2021

The install script should create the photoprism:photoprism group/user. and the rc script will be run under photoprism:photoprism

Please see this line for more details :

if /usr/sbin/pw groupshow "${GROUP}" >/dev/null 2>&1; then

You may try to set the ownership of ${photoprism_storagepath} as photoprism:photoprism ?

@huo-ju huo-ju closed this as completed Dec 2, 2021
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

2 participants