git on my server and cloned my development repository using the root user. The permissions appeared to have been set to:
Files: -rw-r--r-- Directories: drwxr-xr-x
I previously had been using an FTP client to upload files. I need to still be able to use the FTP editor sometimes, but now when I try uploading a file with it I receive the error:
Can't open that file: Permission denied
I've been reading a lot of content on Linux permissions, but I'm just very confused what I should set the file and directory permissions to in order for my FTP client to work again.
A lot of the information I've been reading seems conflicting.. For example, some websites say to just change the permissions to 777, but other say not to as that allows any user on the system total control of the files.
Would the correct approach here be to change the "owner" of the files from what I assume is root to my FTP user?