What is the CHMOD for a directory I want to save files under only using a php – script on the same server. These files should only be readable using my ftp-software(i am admin) or the script.
Background is, I want to save backups of my mysql database there that are created using a php script and a cron-job. Nobody should have access to those but me.
Is it 770, 700, 600 or 660 or something different?
Do I need to set files under this directory with CHMOD aswell or are they not reachable once I set the rights of the upper directory?
If you are running the script as the same user you use for FTP then you just need:
If you there are two user accounts then you need a common group membership in which case the permissions will be