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

mainsail file permissions 403 errors -- set umask to 022 #458

Open
slashbeast opened this issue Apr 21, 2024 · 0 comments
Open

mainsail file permissions 403 errors -- set umask to 022 #458

slashbeast opened this issue Apr 21, 2024 · 0 comments

Comments

@slashbeast
Copy link

Linux Distribution

Raspbian

What happened

I've run update from shell that had umask set to 077 which made ~/mainsail with permissions of 700 that then prevents it from working as the nginx cannot enter the directory if it lacks +x permissions.

What did you expect to happen

I would expect the permissions to be enforced. Best would be to just add umask 022 at the very top of kiauh.sh and it will have no effect on most default configurations but will fix any potential permissions issues for those that have umask of different value. I copied my .zshrc and this is how umask got changed.

How to reproduce

  • run umask 077
  • run kiauh.sh and update mainsail
  • try to access webui, 403 forbidden until you chmod 755 ~/mainsail.

Additional information

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