Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
1 + 1 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Which chmod attributes for a photo gallery album?
by Tobias on 2007/7/12 19:05:02

Not sure I understand, but that's how I figure it looks more or less:

general /galleries directory for all user directories (albums)

individual /galleries/album directories for individual users.

If /galleries is chmod'd to 555, than nobody (not even you) can add or delete anything to/from that directory. That's what I understood you wanted. To be able to manipulate its contents, you'd have to chmod them to 755 and be the owner, or to 775 and be member of group, or to 777. You may not be able to chmod if you're not the owner of the directory. Owner here always being the first name when you do an ls -l

If /galleries/album directories are chmod'd to 755, then users should be able to write something to them, and to delete something inside them, but not to remove the entire directory /galleries/album, because that's protected one level up. Now, this is on the assumption that users are accessing the directory as owner (or that the first 7 applies to them), which would normally be the case only if they are owned by the user who runs the webserver. If the directories are not owned by the user who runs the webserver, then 775 or 777 might be the correct choice for the subdirectories.

In any case, 555 for /galleries/album directories should not be what you want. After all, your users are supposed to upload files to those directories, aren't they?

Re: Which chmod attributes for a photo gallery album?
by mjz55 on 2007/7/11 13:17:31

I chmoded the main album and the sub-album to 555 this time. It would't let the user delete it.......good. HOWEVER, now when he went to add an item in the sub-album he got this error........

Platform Error
An error has occurred while interacting with the platform.


I think (hope) we're closer.
Re: Which chmod attributes for a photo gallery album?
by mjz55 on 2007/7/11 13:02:07

Well, I finally got to change the chmod to 555. Now what happened is that the owner of the sub-album was allowed to delete his sub-album but received an error; which I thought was cool if it didn't really allow the deletion. What happened is that it deleted the album image but kept the album on the server. So, that didn't really work. In fact I could'nd delete the album even after changing the chmod back via the server. I had to actually remove the parent album and create a new blank parent album just to get rid of it.
Re: Which chmod attributes for a photo gallery album?
by Tobias on 2007/7/8 16:15:31

The php script overwrites the permissions you set through the shell on the parent directory? That is outrageous! Then you might really have to make sure that the apache user isn't owner and doesn't belong to the group.

Just so we're on the same page: The aim is that the parent directory is set to 555, and the individual user directories to 755 so that users can write into them and delete from them, but cannot delete de user directories themselves.

Sorry, I'm at the end of my wits!
Re: Which chmod attributes for a photo gallery album?
by mjz55 on 2007/7/8 15:58:27

Umm, tried that. The darn gallery overrides the chmod's. No matter what I do, it reverts back to 755. There is a spot in gallery that allows permissions but there is no offer of a 555. This beats me up. I even tried to change the code in the useralbumhelper.class and that didnt work either. I guess I'm just going to have to mention and remention about not deleting the album.

Who's Online

594 user(s) are online (549 user(s) are browsing Support Forums)


Members: 0


Guests: 594


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits