Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Uploads work on user accounts, not admin  (Read 3010 times)

0 Members and 1 Guest are viewing this topic.

sully6

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Uploads work on user accounts, not admin
« on: February 26, 2006, 04:47:33 am »

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!

Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Uploads work on user accounts, not admin
« Reply #1 on: February 26, 2006, 04:57:53 am »

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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Uploads work on user accounts, not admin
« Reply #2 on: February 26, 2006, 03:01:19 pm »

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.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Uploads work on user accounts, not admin
« Reply #3 on: February 26, 2006, 04:54:13 pm »

Check the ownership of the folders.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Uploads work on user accounts, not admin
« Reply #4 on: February 27, 2006, 02:20:57 am »

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.
« Last Edit: February 27, 2006, 03:46:31 am by sully6 »
Logged

sully6

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Uploads work on user accounts, not admin
« Reply #5 on: February 28, 2006, 04:15:11 am »

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.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Uploads work on user accounts, not admin
« Reply #6 on: February 28, 2006, 04:47:23 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.