Cant chmod the albums directory

pcmodeler

Joined: 2002-11-06
Posts: 13
Posted: Wed, 2002-11-06 03:20

I've tried doing it through putty (cant telnet), wsftp and plusmail (host provided) and can't seem to change the permissions. The albums are owned by nobody, which as I understand, is correct.

What am I doing wrong?

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3473
Posted: Wed, 2002-11-06 03:46

Hi. What are you attempting to do exactly? It's fine if the albums are owned by "nobody", that's just the user Apache runs under. But any chmodding of these things must be done through the web server, since you don't own them:

Write this in a file script.php, filling in the command you want, and run it from your browser.
<?php exec("chmod <...> /full/path/to/directory/or/file") ?>

-Beckett (beck@beckettmw.com)

 
pcmodeler

Joined: 2002-11-06
Posts: 13
Posted: Fri, 2002-11-08 16:01

What I want to do is download the album folders, run all the images submitted through a batch optimization to set the compression level, colors, etc. through photoshop. This allows me to significantly reduce the file size for the images. Obviously downloading isn't a problem, but I'm not able to re-upload the images due to permission problems. I'll give that code a try.