![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've been asked to set up a blog program for a client on his Linux-based server, which I've done, and pretty much everything works OK. However, two things have issues : the image gallery and movie upload. When a file is uploaded via the blog admin, and it arrives on the server, it has permissions set at 600, and the owner are group are both "10003", whatever that is. As a result, it throws up a "403 forbidden" error when the page is loaded, and the gallery doesn't work. This is despite the fact that the upload folder has its permissions set at 777. When I upload via FTP, the situation is slightly different : permissions seem to be set at 644, and there is no owner and group at all (??). Where are the automatic permissions settings? Is it a server config issue, or does it come from the blog? I'd like the files to respect the enclosing folder permissions, i.e. set their permissions automatically to 777. How best to ensure this? Cheers! TIA! |
#3
| |||
| |||
|
|
Where are the automatic permissions settings? Is it a server config issue, or does it come from the blog? I'd like the files to respect the enclosing folder permissions, i.e. set their permissions automatically to 777. How best to ensure this? Cheers! TIA! Ric, Linux Server is a closed book to me. Have you tried posting this on one of the Linux forums? What flavour of Linux is it? |
#4
| |||
| |||
|
|
I've been asked to set up a blog program for a client on his Linux-based server, which I've done, and pretty much everything works OK. However, two things have issues : the image gallery and movie upload. When a file is uploaded via the blog admin, and it arrives on the server, it has permissions set at 600, and the owner are group are both "10003", whatever that is. As a result, it throws up a "403 forbidden" error when the page is loaded, and the gallery doesn't work. This is despite the fact that the upload folder has its permissions set at 777. When I upload via FTP, the situation is slightly different : permissions seem to be set at 644, and there is no owner and group at all (??). Where are the automatic permissions settings? Is it a server config issue, or does it come from the blog? I'd like the files to respect the enclosing folder permissions, i.e. set their permissions automatically to 777. How best to ensure this? Cheers! TIA! |
#5
| |||
| |||
|
|
I don't think you want to give the whole world write permissions! I think the problem must be with the blog program - is there a manual somewhere? 644 seems sensible (owner can read and write, group can read, |
#6
| |||
| |||
|
|
I've been asked to set up a blog program for a client on his Linux-based server, which I've done, and pretty much everything works OK. However, two things have issues : the image gallery and movie upload. When a file is uploaded via the blog admin, and it arrives on the server, it has permissions set at 600, and the owner are group are both "10003", whatever that is. As a result, it throws up a "403 forbidden" error when the page is loaded, and the gallery doesn't work. This is despite the fact that the upload folder has its permissions set at 777. |
|
When I upload via FTP, the situation is slightly different : permissions seem to be set at 644, and there is no owner and group at all (??). |
|
Where are the automatic permissions settings? Is it a server config issue, or does it come from the blog? I'd like the files to respect the enclosing folder permissions, i.e. set their permissions automatically to 777. How best to ensure this? Cheers! TIA! |
#7
| |||
| |||
|
|
ric zito wrote: [snip] Where are the automatic permissions settings? Is it a server config issue, or does it come from the blog? I'd like the files to respect the enclosing folder permissions, i.e. set their permissions automatically to 777. How best to ensure this? Cheers! TIA! The automatic permissions are controlled by umask. Try setting umask 0022 in the environment before you start the uploading software. This will create directories with 755 and files with 644. BTW, setting execute permissions (777) on _files_ that are not programs is considered bad form. It won't actually hurt anything (it can be a bit of a security risk) but it demonstrates the administrator doesn't really understand what's going on. |
#8
| |||
| |||
|
|
On 2007-05-02, Frank....H <askme (AT) for (DOT) it> wrote: ric zito wrote: [snip] Where are the automatic permissions settings? Is it a server config issue, or does it come from the blog? I'd like the files to respect the enclosing folder permissions, i.e. set their permissions automatically to 777. How best to ensure this? Cheers! TIA! The automatic permissions are controlled by umask. Try setting umask 0022 in the environment before you start the uploading software. This will create directories with 755 and files with 644. BTW, setting execute permissions (777) on _files_ that are not programs is considered bad form. It won't actually hurt anything (it can be a bit of a security risk) but it demonstrates the administrator doesn't really understand what's going on. Giving non-executable files execute permission may be seen as bad form, but it's nothing compared to having world writable files and directories! |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |