Installation Permissions Problems... [message #9186] |
Sat, 15 March 2003 02:00 |
|
forrie
Messages: 47 Registered: August 2002 Location: Derry, NH
Karma: 0
|
Member |
|
|
I've run into a few issues with the FudForum installation, where the permissions are not being set properly. For one, to facilitate file/attachment upload. Second, many files are installed as rw-rw-rw- which is, of course, bad.
Has anyone noted the same issues - at least, how to fix the file attachment problem(s).
Specifically, I seem to be able to upload a file, but when I go to "create topic" I get these errors:
Warning: fopen(/usr/local/apache/htdocs/forum/messages/msg_1) [function.fopen]: failed to create stream: Permission denied in /usr/local/apache/htdocs/fud/theme/default/post.php on line 3548
Warning: flock(): supplied argument is not a valid stream resource in /usr/local/apache/htdocs/fud/theme/default/post.php on line 3549
Warning: ftell(): supplied argument is not a valid stream resource in /usr/local/apache/htdocs/fud/theme/default/post.php on line 3550
Warning: fstat(): supplied argument is not a valid stream resource in /usr/local/apache/htdocs/forum/include/core.inc on line 132
Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/apache/htdocs/fud/theme/default/post.php on line 3556
Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/apache/htdocs/fud/theme/default/post.php on line 3557
Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache/htdocs/fud/theme/default/post.php:3548) in /usr/local/apache/htdocs/fud/theme/default/post.php on line 3647
But the file does seem to get uploaded anyways.
The permissions on the directory are:
/usr/local/apache/htdocs/forum/messages
bash-2.05b# ls -al
total 4
drwxrwxrwx 2 nobody nobody 512 Mar 14 00:52 .
drwxr-xr-x 12 nobody nobody 512 Mar 14 00:14 ..
-rw-r--r-- 1 root nobody 1506 Mar 14 00:52 msg_1
This should NOT be installed as world-writable. However, the problem seems related to the fact that root owns "msg_1" but the server id is "nobody" ?
Any help would be appreciated.
Thanks.
[Updated on: Sat, 15 March 2003 03:03] Report message to a moderator
|
|
|
Re: Installation Permissions Problems... [message #9200 is a reply to message #9186] |
Sun, 16 March 2003 20:40 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
To change the file permission to something more secure, use the File locking control panel to 'lock' the forum's files.
The forum does not have write permissions to /usr/local/apache/htdocs/forum/messages/msg_1
hence the error. I suspect it does not have write permission to /usr/local/apache/htdocs/forum/.
The file msg_1 should be owned by nobody:nobody like the rest of the forum files.
FUDforum Core Developer
|
|
|
|
|
Re: Installation Permissions Problems... [message #9252 is a reply to message #9213] |
Tue, 18 March 2003 20:50 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Actually the forum should be unlocked, because the user who the import script is going to run as MUST be able to write to the msg_1 file. For test's sake, try to chmod the msg_1 file to 666 (giving everyone write permissions) and then try importing a message.
FUDforum Core Developer
|
|
|