
0
Answered
Ajenti V new websites default permissions
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.
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.
Answer

0
Answer
Answered
Eugene Pankov (Project coordinator) 9 years ago
If you use the "Create root" button in the UI, it will be chown-ed to www-data:www-data automatically.

Answer
Answered
If you use the "Create root" button in the UI, it will be chown-ed to www-data:www-data automatically.

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?
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

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?
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.
Customer support service by UserEcho