I ran 'ps aux | grep apache' which showed that apache was running under the www-data user account.
I granted the idmsaccess group create and delete permission for both the file in question and the directory containing it. The following is a line from /etc/group idmsaccess:x:1003:ase,www-data,mysql,klog,syslog,daemon,avahi I am under the impression that means that www-data is a member of the group idmsaccess This didn't solve the problem. I ran ls -l to get the permissions on the file in question: a...@djangoonedevb:~/Desktop/idms_project/idms/media/dar$ ls -l J0484_- _2009-03-04_006.jpg -rwxrwxrwt 1 ase idmsaccess 480836 2009-09-29 09:45 J0484_- _2009-03-04_006.jpg And the directory containing it: a...@djangoonedevb:~/Desktop/idms_project/idms/media$ ls -l total 500 drwsrwsrwt 3 ase idmsaccess 12288 2009-09-11 02:58 dar To me it looks like both the file and the directory are set to give everyone (owner, group, and others) write access. On Nov 26, 7:26 am, David De La Harpe Golden <david.delaharpe.gol...@ichec.ie> wrote: > philip.bar...@impaerospace.com wrote: > > I tried editing django/core/files/storage.py to output the results of > > an os.access() check to show that I did have write access to the image > > file immediately before attempting the os.remove. It showed that I had > > write access to the image file. > > You user account or the user account the web server is running as? They > may not be the same thing depending on your setup. > > Also remember that removal requires write permissions on the directory, > removing a file is removing it /from a directory/, so you need write > permission on the directory the file is in as you're changing the > directory to remove the file, not changing the file's > contents (which is what write access to the file itself is about). -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.