Permission

Status
Not open for further replies.

warlock135

New Member
Messages
5
Reaction score
0
Points
0
I want to install projectpier in my host but i got problem when upload file.
That application need create some sub folder and with permission 777 but default is 755 so i cant upload anything.
Is there anyway to set default permission when create file or folder is 777?
Thank you
 

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
Check your FTP client, it should have options to set file permissions(usually by right-clicking a folder, then selecting permissions)
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
You can also set the permissions from cPanel --> FileManager
 

warlock135

New Member
Messages
5
Reaction score
0
Points
0
I want to upload file using my application not by ftp client.
It need to create some subfolder inside upload folder but when it create folder the permission is only 755.
 

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
well at this point, if you need to change those permissions, only easy way is to use an ftp client, or use cPanel --> FileManager
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
"application", perl, PHP, Python?

All have chmod functions to set permissions.
 

warlock135

New Member
Messages
5
Reaction score
0
Points
0
My application is projectpier. That is the message i got when i tried to upload file using it

Failed to create folder '/home/warlock1/public_html/projectpier/upload/27110/00cf4/d33b6'

To upload file that app need to create sub folder like 27110 inside upload folder. I set permission of upload folder is 777 but when it create folder 27110 permission is only 755 (default) so it cant creat folder 00cf4 inside.
Is there anyway to set permission default to 777 ?
 

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
AH that makes sense now.
Assuming the project uses the php function mkdir, it should set folders to 777. Let me test a couple things real quick.

[edit] yeah its only setting to 755. Ill bug an admin if i can
[edit2] it has to do with the umask. The best you can do is submit it as a bug report, that servers with a umask other than 0 will have this issue, and they need to make up for that
 
Last edited:

warlock135

New Member
Messages
5
Reaction score
0
Points
0
Thank you for help !
I found an easier way to do it (change the mkdir function of pp ^^)
 
Status
Not open for further replies.
Top