GetSimple Support Forum
PROBLEM Wrong access permissions on ftp after copying files - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: PROBLEM Wrong access permissions on ftp after copying files (/showthread.php?tid=8663)



Wrong access permissions on ftp after copying files - Hypertexter - 2016-08-19

Help!

I tried to synchronize theme files between a local WAMP installation and a web installation. This seems to result in changed access permissions for all the copied files Undecided .

GS would need something like 65536/65536 in Filezilla, but they all are on 1000/1000. How can I reverse this?

Thank you
Hypertexter


RE: Wrong access permissions on ftp after copying files - shawn_a - 2016-08-20

filezilla right click chmod


RE: Wrong access permissions on ftp after copying files - Hypertexter - 2016-08-20

In this account Filezilla allows me only to change access permissions (644 to 777 and that stuff), but this seem to be owner rights.

GS sets ownership to 65535. The manually uploaded files have 1000, and GS cannot change them. I do not find a switch in Filezilla to change that.


RE: Wrong access permissions on ftp after copying files - shawn_a - 2016-08-20

owner is userid of local system , not GS
that would be your ftp login
and the other would be your ftp process account

you need to ssh and chown the files or upload some other way


RE: Wrong access permissions on ftp after copying files - Hypertexter - 2016-08-21

I was asking my web hoster. They say these 65534 values (not 65536) come from Apache.

Are you sure, this is all ok in 3.3.11? I cannot edit the template.php files any more, not in Cardinal, not in Innovation standard theme, not in my custom theme.

But I did nothing on the standard themes. The files are on 644 and 1000/1000 and when I try to edit them (also if the theme is not the actual theme at that moment), and save the changes, I get "can't open file" on a white page.

Huh


RE: Wrong access permissions on ftp after copying files - shawn_a - 2016-08-21

I meant apache or php process user, yes.
almost nothing was changed in 3.3.11

only these were changed
https://github.com/GetSimpleCMS/GetSimpleCMS/commit/62d79ecfdb60c2815fe86b92789aa3b4390dc6bd

i am going to guess you have permission problems still.


RE: Wrong access permissions on ftp after copying files - Hypertexter - 2016-08-21

Quote:i am going to guess you have permission problems still.

Definitely. But how to solve? There is no way to set user/group to 65534 manually.

I could change 644 to 777 for the themes folders. Would that be a security risk?

Is there an overview with standard permissions of a fresh GS install to rebuild?


RE: Wrong access permissions on ftp after copying files - shawn_a - 2016-08-21

you can try uploading via control panel instead of ftp,
also you can try group writable permissions and see if that works, 755, 777 might be overkill, but that is the easiest way to test permissions issues.


RE: Wrong access permissions on ftp after copying files - Hypertexter - 2016-08-21

What do you mean by "upload via control panel"? Upload via GS? There I can only upload to the uploads folder.

And how/where can I try group writable permissions?

And what means "might be an overkill"? Is it a security risk, or is it not?

And is there an overview with standard permissions which I could imitate?


RE: Wrong access permissions on ftp after copying files - shawn_a - 2016-08-22

your host cpanel upload will use a different owner than your ftp login, likely

yes 777 is bad, but it will tell you instantly if your problem is permissions or user.


RE: Wrong access permissions on ftp after copying files - Hypertexter - 2016-08-22

777 for template.php helps. And what does that tell me now?


RE: Wrong access permissions on ftp after copying files - shawn_a - 2016-08-22

try 775 ?


RE: Wrong access permissions on ftp after copying files - shawn_a - 2016-08-22

http://permissions-calculator.org/decode/0765/
http://serverfault.com/questions/357108/what-permissions-should-my-website-files-folders-have-on-a-linux-webserver


RE: Wrong access permissions on ftp after copying files - shawn_a - 2016-08-22

you can try 664 for files, and see if you just need group write


RE: Wrong access permissions on ftp after copying files - Hypertexter - 2016-08-22

664 was not enough, 755 and 775 also not, 666 worked.

Is there no general answer for all servers, which permissions do the files need? I never had problems saving changes in template.php or style.css and suddenly I have.

That security vulnerabilities with 777: is that even when logged off ftp? Or isn't the file always protected by the ftp logon password, so that using 777 would be no real problem?


RE: Wrong access permissions on ftp after copying files - shawn_a - 2016-08-22

file permissions have nothing to do with ftp.

it depends on if your php ftp and apache are in the same group. You might be able to chown the php files to php or a user in the same group, so you do not need to set writable for other, which is not good.