FTP Uploaded images have wacky permissions

fishtank22

Joined: 2002-09-04
Posts: 36
Posted: Wed, 2002-09-04 14:43

Hey guys...
I just installed 1.3.1 on my New MAC OS X 10.2 box. Everything seems to be working great. You guys all rule for getting this amazing program up and running.

I ususally Upload my bulk images to my Pictures folder in my users folder and them point "add photos" to the path to Pictures/newFolder, but when I do, all my permissions are blank (meaning not rwx for all images and the new folder) I assume there is something i'm doing wrong, but not sure... owner is set to my username but Gallery runs under 'nobody' per your permission instructions. Any Idea what i'm doing wrong? I hate having to SSH to the folder to CHMOD all the files.

Thanks again

Fish
<!-- BBCode Start --><A HREF="http://www.fishilens.com/gallery/" TARGET="_blank">Fish's Gallery</A><!-- BBCode End -->

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-09-05 04:29

So when you upload photos directly from your desktop, they work, but when you upload them from the local (server) filesystem they wind up with bad permissions? Do the files that you upload directly from your PC wind up owned by nobody or by you?

 
fishtank22

Joined: 2002-09-04
Posts: 36
Posted: Thu, 2002-09-05 17:37

well, when I upload from the desktop using the "Browse" option in the "add Photos" window the files go up with no problem into the respective album folder.

BUT,

When I upload my pics via FTP to a holding folder before I point the path to that holding folder, I get permission errors. I always have to goto the folder via SSh and change the permissions to 777 for gallery to process the images.

My user folder where I keep my pics is owned by 'me' and the r+w+x permissions are all blank until I change them to 777. Gallery is owned by 'nobody'. Do I just change the permissions of the holding folder to 777, or, is this a ftp utility issue where I need to automaticly change the permissions to 777?

Thanks for te help B.

Fish

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Fri, 2002-09-06 05:34

This sounds like a local issue, your local uname mask is probably
set pretty restrictive for security reasons and defaults to letting
nobody but you access whatever files you create. So, you pretty
much answered your own question in that you'll most likely need
to alter the permissions of files after uploading. Just changing the
directory won't do it most likely.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2002-09-07 20:21

Yep, I think vallimar is right. This is not a gallery issue; your ISP has set it up so that when you upload stuff to your account the new files are stored with very restrictive permissions. If the new files are not visibile to the world then they're not visible to Gallery (which is running as Apache, not as you). Not much we can do about this (but maybe your ISP can).

 
fishtank22

Joined: 2002-09-04
Posts: 36
Posted: Sun, 2002-09-08 02:06

Actually, I am my ISP...Its on my own server...I just am not so slick with permissions.
Any suggestions as to what I should set the folder to?
OR, should I use my PUBLIC folder. Maybe that would be less strict.

Thanks for the help guys... Once I install 10.2 I'll just use remote I guess.

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Sun, 2002-09-08 05:51

Check your ftp configuration file then, thats most likely where
it's set to alter permissions of uploaded files. Thats about all
I can suggest. If that isn't it, it could be a setting in the login
scripts that are setting the uname. Not much more we can
offer.