14

[ubuntu] Folder Permissions for both FTP & Www-data users?

view full story
linux-howto

http://ubuntuforums.org – Gday everyone! Im new here... but used ubuntu for nearly ayear now! I've been uploading files to a folder using an FTP user within my web directory : httpdocs/files... But when my php script goes to move these files to a new directory it fails, the files are uploaded with permissions 'rwx rw- rw- '... My rename() function in PHP does not work... I've added the FTP user to group www-data using 'sudo usermod' and changing the owner using 'chown' with no luck... My commands: chown -R www-data:www-data folder and... chgrp -R www-data folder Each time I want to upload (Hardware)