Gossamer Forum
Home : Products : DBMan : Customization :

Re: uid password and image deletes

Quote Reply
Re: uid password and image deletes In reply to
I understand now.

The problem with image deletes is almost assuredly based on permissions. When a user uploads a file through FTP, the file "belongs" to the user who uploaded it -- whatever username was used for the FTP. The normal permissions for the file are 644, which means that the user can read and write to the file, but everyone else can just read it.

When the script is run, the user is "nobody." In order for "nobody" to be able to delete the file "he" must have write permission. To allow the "nobody" to have write permission on a file uploaded by somebody else, the permission for the file must be 666.

(I learned about this with the file-upload mod. Without the files having their permissions set to 666 at the time of uploading, I couldn't delete the file from my own webspace by FTP. I had to delete them through the script.)


------------------
JPD





Subject Author Views Date
Thread uid password and image deletes handmade 4094 Sep 28, 1999, 9:28 AM
Post Re: uid password and image deletes
JPDeni 3971 Sep 28, 1999, 6:26 AM
Post Re: uid password and image deletes
handmade 3983 Sep 28, 1999, 8:16 AM
Post Re: uid password and image deletes
JPDeni 3964 Sep 28, 1999, 11:23 AM
Post Re: uid password and image deletes
handmade 3973 Sep 28, 1999, 6:58 PM
Post Re: uid password and image deletes
JPDeni 3978 Sep 29, 1999, 5:24 AM
Post Re: uid password and image deletes
handmade 3943 Sep 29, 1999, 6:02 AM
Post Re: uid password and image deletes
JPDeni 3978 Sep 29, 1999, 6:09 AM
Post Re: uid password and image deletes
JPDeni 3972 Sep 29, 1999, 8:11 AM
Post Re: uid password and image deletes
handmade 3958 Sep 29, 1999, 6:28 PM
Post Re: uid password and image deletes
handmade 3962 Sep 30, 1999, 9:55 PM
Post Re: uid password and image deletes
handmade 3955 Oct 1, 1999, 8:21 AM
Post Re: uid password and image deletes
JPDeni 4021 Oct 1, 1999, 8:41 AM
Post Re: uid password and image deletes
JPDeni 3969 Oct 1, 1999, 10:56 AM
Post Re: uid password and image deletes
handmade 3957 Oct 3, 1999, 3:04 AM
Post Re: uid password and image deletes
handmade 3945 Oct 17, 1999, 9:45 PM
Post Re: uid password and image deletes
JPDeni 3986 Oct 18, 1999, 11:59 AM
Post Re: uid password and image deletes
handmade 3972 Oct 18, 1999, 3:46 PM
Post Re: uid password and image deletes
JPDeni 3971 Oct 19, 1999, 6:29 AM
Post Re: uid password and image deletes
handmade 3988 Nov 1, 1999, 9:42 AM