Page 1 of 1

Creating directory´s

Posted: Mon Mar 06, 2006 11:24 am
by musicscore
When I add a directory under upload with the option Content - Image Manager (or File Manager) - Create new Folder I can´t upload anything in these folders. I think the user rights are not set properly. The right are 755. I use CMSMS 0.12beta2.

What am I doing wrong !!??

Musicscore

Re: Creating directory´s

Posted: Mon Mar 06, 2006 6:08 pm
by dirtywhitellama
I dont know anything about your problem specifically but in the installation tutorial it says to set rights to your folders as 777...  maybe that will help.

Re: Creating directory´s

Posted: Mon Mar 06, 2006 8:10 pm
by jelle
Unix permission have a user and group as wel as a permission byte (written as 777 or 755 here) If you already own the file, it does not matter what the rights for 'group' or 'other' are. If you have created the file/directory yourself, chances are very big that you own it too.
But to be sure you need to look at the file owner/group too instead of only looking  at the permissions mode.
Check your error log too, it might contain a clue why it cannot do what you are trying to do.

Re: Creating directory´s

Posted: Mon Mar 06, 2006 8:20 pm
by calguy1000
from the "chmod" man page
speicifically, the rights are (in binary, groups of 3 bits):
  owner            group        user
  rwx                rwx            rwx
 
therefore, if the mode is 777, all users have the ability to read, write and execute the file.
therefore, you need to know the user, and group id that the web server process is running as, as well as your user id, and group id.

if the user id, and group id is different, and you are trying to upload files unsuccessfully, then I would suggest setting the permissions on the uploads directory) to 766, (rwx for owner, rw for group, and rw for user).  Although this is not the best setting for permissions, it should certainly help you past this problem.

Re: Creating directory´s

Posted: Mon Mar 06, 2006 8:26 pm
by jelle
Unix permission have a user and group as wel as a permission byte (written as 777 or 755 here) If you already own the file, it does not matter what the rights for 'group' or 'other' are. If you have created the file/directory yourself, chances are very big that you own it too.
But to be sure you need to look at the file owner/group too instead of only looking  at the permissions mode.
Check your error log too, it might contain a clue why it cannot do what you are trying to do.

I just tried to reproduce this in svntest or 0.12beta2, but I could not. The closest I got was by having the wrong permission on the uploads directory, but then you can't create the directory in the first place.

Re: Creating directory´s

Posted: Thu Mar 09, 2006 7:49 am
by musicscore
Can it be the because my webhoster is having "PHP SAFE MODE" = on.

Musicscore