From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 02:30:06 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22EF116A420 for ; Thu, 21 Jul 2005 02:30:06 +0000 (GMT) (envelope-from chris@monochrome.org) Received: from mail.monochrome.org (b4.ebbed1.client.atlantech.net [209.190.235.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A6B843D48 for ; Thu, 21 Jul 2005 02:30:05 +0000 (GMT) (envelope-from chris@monochrome.org) Received: from tripel (tripel [192.168.1.11]) by mail.monochrome.org (8.9.3/8.9.3) with ESMTP id WAA30260; Wed, 20 Jul 2005 22:29:59 -0400 (EDT) (envelope-from chris@monochrome.org) Date: Wed, 20 Jul 2005 22:31:22 -0400 (EDT) From: Chris Hill To: "Conrad J. Sabatier" In-Reply-To: Message-ID: <20050720222333.C19972@tripel.monochrome.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org Subject: Re: Mount point's drwxrwxrwt permissions change when device is mounted (5.4-STABLE, amd64) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 02:30:06 -0000 On Wed, 20 Jul 2005, Conrad J. Sabatier wrote: > The ount point, branching off of the root (/) directory and owned by > root:wheel, is setup with the correct permissions (chmod 01777) prior > to mounting the device, but immediately changes once the device is > mounted. [...] > I've even tried a kernel with "options SUIDDIR", added "suiddir" to the > mount point's options in /etc/fstab, and enabled the suid and guid > bits in the directory's permissions, but to no avail. It *still* gets > reset to drwxr-x-r-x. This sounds like something to do with devfs, since the device files get created and destroyed as the devices themselves come and go. Look into man devfs, also the files devfs.conf and devfs.rules. HTH. -- Chris Hill chris@monochrome.org ** [ Busy Expunging <|> ]