0
Beantwortet

Ajenti V new websites default permissions

Thibaut vor 10 Jahren aktualisiert von Shabab Farhat vor 9 Jahren 11
Hi,

Is it possible to configure Ajenti V so it sets permissions for new websites directories to a user different than root?

As a security measure, we don't use the root account and we use other account for SSH (and so for SFTP). It would be great to be able to edit files in our SFTP client without needing the root account.

Antwort

Antwort
Beantwortet
If you use the "Create root" button in the UI, it will be chown-ed to www-data:www-data automatically.
GUT, ICH BIN ZUFRIEDEN.
Zufriedenheit von Thibaut vor 10 Jahren
Antwort
Beantwortet
If you use the "Create root" button in the UI, it will be chown-ed to www-data:www-data automatically.
Where is that "create root" button?
It won't appear if website root already exists:
Okay it's not "create root". ;)

Anyway, that's what I do all the time but group is root and user is www-data. And I'm not able to quickly edit files via SFTP using my own account (which has sudo access, but I can't use sudo in the SFTP client). Is there a way to change that?
Found it - it was a missing colon in chown call :) Uploading a fix right now
It works, thanks.
Would it be possible to apply the same permissions to files added via the "Download and unpack" feature? That would be great for websites you always install via a .zip (like WordPress). :)
I think there is still something wrong with file permissions. I uploaded and unzipped a new WP website via the control panel and when I open my SFTP client, I can't edit the website files. Sub-folders seem to be fine

Files: chmod is 666, user is www-data, group www-data.
Folders: chmod 775, user is www-data, group www-data.

Do I need to manually chmod every website I create via the control panel?
If you're using a non-root user over SFTP, you need to add this user to www-data group.
+2
Is it possible to give www-data group Read and Write permissions by default.