expandedfronts / revisr

Revisr: Git for WordPress
https://revisr.io
GNU General Public License v3.0
195 stars 41 forks source link

revisr using git as root user #118

Closed TylerBarnes closed 5 years ago

TylerBarnes commented 6 years ago

Revisr seems to be doing git pull as the server root user. Is this a configuration error on my end or is this to do with revisr? Because of this, files in the theme directory can only be edited via ftp when connected as the root user. This wouldn't be an issue for me except that someone in my office likes to edit via ftp.

TylerBarnes commented 6 years ago

I think this was a server configuration issue. I guess it's best practise to add another user to the sudoers list and then disable ssh access to the root user. I did that and everything seems to be working great.

For anyone else with this issue, this is what I did -> https://www.a2hosting.com/kb/getting-started-guide/accessing-your-account/disabling-ssh-logins-for-root#Disabling-SSH-login-for-root