Skip to content

Server Permissions  #9

@martapavelka

Description

@martapavelka

Marta to Jef:
Dear Jef!
Thank you, all programs work as expected. There is a little issue with rights.

-- The web UI link
https://www.math.miami.edu/~pavelka/scpc/

In the project folder ‘~/public_html/scpc’ there is a script ‘update.php’ that updates the repository from GitHub and generates the python file. However, the web server ‘www:www’ has no rights to write into the folder.

-- The update link
https://www.math.miami.edu/~pavelka/scpc/update.php

I found a small workaround by adding ‘o+w’ to files owned by ‘pavelka:user’. It works fine, but limits my work from the CLI. Using the script, each updated file is set to ‘www:user’ with ‘rw-r--r--’. In order to access such a file from CLI I need to duplicate it and force-delete the original.

Is there a simple way allowing me to manipulate files both from CLI and using the script?

Thank you again for the support!
Marta

Jef to Marta:
I created a new group called webby, of which pavelka and www are members.

This seemed better than granting you access to www, which could have
unforseen effects.

Then I changed the group ownership of scpc to webby although I didn't
change any of the files underneath.

You should be able to "chgrp webby " to change the protections
of anything you need. Then we should go back and remove all the "o" write
access on your stuff, because that's very very bad.

But one thing at a time, let's try to get this working.

Let me know how it goes!

-jef

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions