FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Message post permissions issues
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon4.gif  Message post permissions issues [message #9287] Thu, 20 March 2003 19:02 Go to next message
forrie is currently offline  forrie   United States
Messages: 47
Registered: August 2002
Location: Derry, NH
Karma: 0
Member
I have procmail piping some list to a forum. The forum is generating these errors when I go to read:


Warning: fopen(/usr/local/apache/htdocs/forumdata/messages/msg_1) [function.fopen]: failed to create stream: Permission denied in /usr/local/apache/htdocs/forum/theme/default/msg.php on line 169

Warning: fseek(): supplied argument is not a valid stream resource in /usr/local/apache/htdocs/forum/theme/default/msg.php on line 185

Warning: fread(): supplied argument is not a valid stream resource in /usr/local/apache/htdocs/forum/theme/default/msg.php on line 186

When I look at the permissions of the message file, I see:

-rw------- 1 forrie nobody 573 Mar 20 14:02 msg_1

And it seems to have inherited my ownership; which I'm a little puzzled by.

Should I do an "sudo -c nobody | /forumdata/scripts/maillist.php 3" in my procmail rc, setting my permissions in sudo.conf?



Forrest


icon2.gif  Re: Message post permissions issues [message #9289 is a reply to message #9287] Thu, 20 March 2003 19:48 Go to previous messageGo to next message
forrie is currently offline  forrie   United States
Messages: 47
Registered: August 2002
Location: Derry, NH
Karma: 0
Member
I tried doing this in .procmailrc:

| /usr/local/bin/sudo -u nobody /forumdata/scripts/maillist.php 3

and it didn't work (tried quotes, too). If I leave it be, it works fine. Yet we have this problem with permissions on the resulting filet that's piped.

Anyone have a workaround for this issue?


Re: Message post permissions issues [message #9306 is a reply to message #9289] Mon, 24 March 2003 14:37 Go to previous message
bbarnett is currently offline  bbarnett   Canada
Messages: 19
Registered: March 2003
Karma: 0
Junior Member
See "message posts have no body" below..

It deals with two ways to resolve this issue...
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Repeatable failure
Next Topic: Fatal error: Allowed memory size of 8388608 bytes exhausted
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Dec 18 06:46:31 GMT 2024

Total time taken to generate the page: 0.02584 seconds