piatoakside wrote:That's great, Marco Luis. But is 'technion's point actually relevant here? I thought he was commenting on another posting. In my procedures I don't ftp from my laptop as 'pi', but as <newuser> an account with no sudo access which owns the 'web' folder and nothing else. That 'web' folder has '744' settings, and changing to '775' doesn't seem right to me.
The important point is that it's not world-writable, either way is really ok:
Folder is owned by your user, and chmod 744
Folder is owned by a group you are a member of, and chmod 774
To enable directory listings you may need a 5 anywhere you put a 4 in the above
In terms of 775 not seeming right, if there are other members of your group that should not have write access to the web server, you are completely right. If you are the only member of your group (as is the default for the pi user and group) then 775 = 755.
I think we can all agree what we don't want is 777