From owner-freebsd-questions Tue Jul 20 16: 7:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from waveconcepts.com (waveconcepts.com [207.126.116.40]) by hub.freebsd.org (Postfix) with ESMTP id E086A153E9 for ; Tue, 20 Jul 1999 16:07:16 -0700 (PDT) (envelope-from siberian@siberian.org) Received: from [216.112.76.84] (gamera.siberian.org [216.112.76.84] (may be forged)) by waveconcepts.com (8.9.2/8.9.2) with ESMTP id QAA13816; Tue, 20 Jul 1999 16:03:06 -0700 (PDT) Mime-Version: 1.0 X-Sender: siberian@207.126.116.40 Message-Id: In-Reply-To: <19990720092829.K72885@freebie.lemis.com> References: <19990720092829.K72885@freebie.lemis.com> Date: Tue, 20 Jul 1999 16:08:32 -0700 To: freebsd-questions@FreeBSD.ORG From: John Armstrong Subject: Re: Shared Memory Problem Example Code Cc: freebsd-questions@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Found the problem with this. When you send the mode option : my %options = ('create' => 'yes' , 'exclusive' => 'no' , 'mode' => '0666', 'destroy' => 'no' , ) ; to the back end, freebsd interprets '0666' ( world readable and writeable ) as world _writeable_, thus making it only accessible by root. Removing the 'mode' argument and letting it default takes care of the problem. Am I misreading the perm masks here or is this a bug that needs to go to send-pr? In 3.0 the mode command worked fine. ipcs results : With 'mode' specified as '0666' : m 131075 1313361738 ---w--wa-w- www www With no mode specified : m 65541 5432 --rw-rw-rw- www www John- ------------------------------------------------------------------ The first electric toothbrush was developed and tested on dogs. There reportedly enjoyed it. -Uncle John's Fourth Bathroom Reader To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message