Uploads work on user accounts, not admin Uploads work on user accounts, not admin
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Uploads work on user accounts, not admin

Started by sully6, February 26, 2006, 04:47:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sully6

I am receiving the "Destination directory albums/userpics/10001/ is not writable by the script !" message when I try to upload pics from my admin account.  I've loaded pics in the past and have verified my permissions.

I created a user account
username: guest
password: password

and I can upload just fine with that account. I can post the debug info if it will be helpful.

www.sully6pack.com/photo

Thanks!


kegobeer

Are the /albums and all subdirectory permissions the same?  If not, they should all be set to 777 (or 755, or whatever works on your server.)  If your new user's subdirectory works, then I would imagine all subdirectories should be set the same as that one.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

sully6

Albums and Userpics folders are at 777.  10001 folder is at 755 and 10002 folder (the user folder) is also at 755.  Seems odd that one works and other doesn't.

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

sully6

#4
I'm not sure what you mean by "ownership" of the folders.

When I list the directory info, here is what I get:

drwxrwxrwx    5 32903    sully6       4096 Feb 25 22:21 .
drwxrwxrwx    5 32903    sully6       4096 Dec 27 06:55 ..
drwxr-xr-x       2 99       99           4096 Dec 23 14:55 10001
drwxr-xr-x       2 32903    sully6       4096 Feb 25 22:21 10002
drwxrwxrwx    2 32903    sully6       4096 Dec 27 06:55 _vti_cnf
-rwxrwxrwx     1 32903    sully6          0 Aug 13  2005 index.html


The notable difference is "99" vs "sully6".  sully6 is my user id.  I have no clue what 99 is.

By the way... thanks for responding.  I truly appreciate the fact that you're even taking time to try to help me with this.

sully6

I renamed the 10001 directory and then created a new one with the same name.  Then I copied all the files over.  Problem solved.  Thanks.

Tranz

I think 99 means nobody. But the main point is that if it's not your userid, your user does not have full access rights to the folder or file so that's why the script couldn't "write" to it.