From owner-freebsd-bugs@FreeBSD.ORG Fri Mar 12 04:40:10 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20D0E16A4CE for ; Fri, 12 Mar 2004 04:40:10 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 115F543D45 for ; Fri, 12 Mar 2004 04:40:10 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2CCe9bv056217 for ; Fri, 12 Mar 2004 04:40:09 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2CCe9uF056216; Fri, 12 Mar 2004 04:40:09 -0800 (PST) (envelope-from gnats) Date: Fri, 12 Mar 2004 04:40:09 -0800 (PST) Message-Id: <200403121240.i2CCe9uF056216@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Vasil Dimov Subject: Re: misc/64079: mount_mfs (md) refuses to use permissions when mounting X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Vasil Dimov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 12:40:10 -0000 The following reply was made to PR misc/64079; it has been noted by GNATS. From: Vasil Dimov To: freebsd-gnats-submit@FreeBSD.org, jd@aurora.org Cc: Subject: Re: misc/64079: mount_mfs (md) refuses to use permissions when mounting Date: Fri, 12 Mar 2004 14:39:08 +0200 > >Description: > mount_mfs commands '-p' and '-w' do not work as expected when setting up a RAM filesystem on 5.2.1 (md) did you try running mount_mfs manually? > >How-To-Repeat: > /etc/fstab: > > md /MIMEDefang mfs rw,-p 700,-w smmsp:smmsp,-s48m,noasync,noatime 0 0 > > When mounted it results in permissions such as: > > drwxrwxrwt 3 root wheel 512 > > No matter what the dir was BEFORE trying this command. The only way to get the permissions correct is to mount the RAM slice without '-p' and '-w' and then chown/chmod them afterwords. Try the following: 1. substitute `mfs' in fstab with `foo' 2. ln -s /bin/echo /sbin/mount_foo 3. mount /MIMEDefang ... hmmz man fstab: : Each file system is described on a separate line; fields on each line are : separated by tabs or spaces. Hope this will help.