Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Mar 2004 04:40:09 -0800 (PST)
From:      Vasil Dimov <vd@datamax.bg>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/64079: mount_mfs (md) refuses to use permissions when mounting
Message-ID:  <200403121240.i2CCe9uF056216@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/64079; it has been noted by GNATS.

From: Vasil Dimov <vd@datamax.bg>
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403121240.i2CCe9uF056216>